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

Unified Diff: base/base_switches.cc

Issue 119493005: Expose a low-end device mode override flags for non-android OSs as well (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: Put low end device detection under the flag for all platforms except android. Created 6 years, 11 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 91e401ca49708c128cda01bbc3318e3b230d8d83..019774156d12ca23d658a474c0899661b38814f5 100644
--- a/base/base_switches.cc
+++ b/base/base_switches.cc
@@ -15,6 +15,9 @@ const char kDebugOnStart[] = "debug-on-start";
// 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.
@@ -23,6 +26,9 @@ const char kEnableCrashReporter[] = "enable-crash-reporter";
// Enable DCHECKs in release mode.
const char kEnableDCHECK[] = "enable-dcheck";
+// 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";
@@ -69,12 +75,4 @@ 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";
-#endif
-
} // namespace switches

Powered by Google App Engine
This is Rietveld 408576698