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

Unified Diff: chrome/browser/about_flags.cc

Issue 10661030: Enable Pointer Lock by default, change about:flags option to multi-select. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: whitespace Created 8 years, 6 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
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/about_flags.cc
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index c17ea117941d5aa8714c1c955c801f4c4bf7d908..923008a148e4e00a84d831f8b537d7ab23d1bbbe 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -131,6 +131,14 @@ const Experiment::Choice kTouchOptimizedUIChoices[] = {
switches::kTouchOptimizedUIDisabled }
};
+const Experiment::Choice kPointerLockUIChoices[] = {
+ { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" },
+ { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED,
+ switches::kEnablePointerLock, ""},
+ { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED,
+ switches::kDisablePointerLock, ""}
+};
+
// RECORDING USER METRICS FOR FLAGS:
// -----------------------------------------------------------------------------
@@ -525,7 +533,7 @@ const Experiment kExperiments[] = {
IDS_FLAGS_ENABLE_POINTER_LOCK_NAME,
IDS_FLAGS_ENABLE_POINTER_LOCK_DESCRIPTION,
kOsAll,
- SINGLE_VALUE_TYPE(switches::kEnablePointerLock)
+ MULTI_VALUE_TYPE(kPointerLockUIChoices)
},
#if defined(USE_ASH)
{
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698