Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2982)

Unified Diff: base/base_switches.cc

Issue 258663002: Expose a low-end device mode override flags for non-android OSs as well (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Forward command-line flags to renderer and gpu processes Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: base/base_switches.cc
diff --git a/base/base_switches.cc b/base/base_switches.cc
index 81698cdfc13fdac9cc5f3ef49243e93ef6eab00a..5b93dbf174b313ed10fc4bde23013da884d3cb3e 100644
--- a/base/base_switches.cc
+++ b/base/base_switches.cc
@@ -9,11 +9,17 @@ namespace switches {
// Disables the crash reporting.
const char kDisableBreakpad[] = "disable-breakpad";
+// Overrides low-end device detection, disabling low-end device optimizations.
+const char kDisableLowEndDeviceMode[] = "disable-low-end-device-mode";
+
// Indicates that crash reporting should be enabled. On platforms where helper
// processes cannot access to files needed to make this decision, this flag is
// generated internally.
const char kEnableCrashReporter[] = "enable-crash-reporter";
+// Overrides low-end device detection, enabling low-end device optimizations.
+const char kEnableLowEndDeviceMode[] = "enable-low-end-device-mode";
+
// Generates full memory crash dump.
const char kFullMemoryCrashReport[] = "full-memory-crash-report";
@@ -60,12 +66,9 @@ const char kEnableCrashReporterForTesting[] =
"enable-crash-reporter-for-testing";
#endif
-#if defined(OS_ANDROID)
-// Overrides low-end device detection, disabling low-end device optimizations.
-const char kDisableLowEndDeviceMode[] = "disable-low-end-device-mode";
-
-// Overrides low-end device detection, enabling low-end device optimizations.
-const char kEnableLowEndDeviceMode[] = "enable-low-end-device-mode";
+#if !defined(OS_ANDROID)
+// Indicates whether to detect low-end device.
+const char kDetectLowEndDevice[] = "detect-low-end-device";
#endif
} // namespace switches

Powered by Google App Engine
This is Rietveld 408576698