summaryrefslogtreecommitdiffstats
path: root/base/base_switches.cc
diff options
context:
space:
mode:
authorjdduke@chromium.org <jdduke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-27 16:40:53 +0000
committerjdduke@chromium.org <jdduke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-27 16:40:53 +0000
commit705872bdc38e14bac98b4999acc8d6294ea06218 (patch)
treece999e48fb384a4b4a5ff39f1405800ee72042da /base/base_switches.cc
parent48b902d876262215df2a783f01597a48c5b93715 (diff)
downloadchromium_src-705872bdc38e14bac98b4999acc8d6294ea06218.zip
chromium_src-705872bdc38e14bac98b4999acc8d6294ea06218.tar.gz
chromium_src-705872bdc38e14bac98b4999acc8d6294ea06218.tar.bz2
[Android] Add a low-end device mode override flag
The current low-end device optimizations are restricted to devices that meet certain memory and OS version criteria. Add a flag that overrides this detection, simplifying testing and allowing power users to take advantage of the optimizations. BUG=320747 Review URL: https://codereview.chromium.org/62833002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237584 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/base_switches.cc')
-rw-r--r--base/base_switches.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/base/base_switches.cc b/base/base_switches.cc
index c6dce9b..526633c 100644
--- a/base/base_switches.cc
+++ b/base/base_switches.cc
@@ -61,4 +61,12 @@ 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