[CrOS] Show system information via Chrome Internal Page
Shows information like CPU usage, Memory status, Zram status.
This patch adds the implementation for the Internal Page backend.
Get system information via Chrome base api, and pass the data to
frontend by calling Javascript function.
Bug: 752002
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: I76c863176270ee61268d22c880b74dafb0958b10
Reviewed-on: https://chromium-review.googlesource.com/625499
Commit-Queue: Zhong-sheng Wu <[email protected]>
Reviewed-by: calamity <[email protected]>
Reviewed-by: Brett Wilson <[email protected]>
Cr-Commit-Position: refs/heads/master@{#499191}
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index c5ba7593..e4baad6 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -3433,6 +3433,12 @@
SINGLE_VALUE_TYPE(chromeos::switches::kEnableExternalDriveRename)},
#endif // defined(OS_CHROMEOS)
+#if defined(OS_CHROMEOS)
+ {"sys-internals", flag_descriptions::kSysInternalsName,
+ flag_descriptions::kSysInternalsDescription, kOsCrOS,
+ FEATURE_VALUE_TYPE(features::kSysInternals)}
+#endif // defined(OS_CHROMEOS)
+
// NOTE: Adding new command-line switches requires adding corresponding
// entries to enum "LoginCustomFlags" in histograms/enums.xml. See note in
// enums.xml and don't forget to run AboutFlagsHistogramTest unit test.