summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
Diffstat (limited to 'chrome')
-rw-r--r--chrome/app/generated_resources.grd2
-rw-r--r--chrome/browser/about_flags.cc10
2 files changed, 10 insertions, 2 deletions
diff --git a/chrome/app/generated_resources.grd b/chrome/app/generated_resources.grd
index 1a17af3..9c689fb 100644
--- a/chrome/app/generated_resources.grd
+++ b/chrome/app/generated_resources.grd
@@ -5616,7 +5616,7 @@ Keep your key file in a safe place. You will need it to create new versions of y
Disable throttling the rate of window resize. We throttle the resize for less perceived latency.
</message>
<message name="IDS_FLAGS_ENABLE_POINTER_LOCK_NAME" desc="Title for the flag to enable the pointer lock feature.">
- Enable Pointer Lock
+ Pointer Lock
</message>
<message name="IDS_FLAGS_ENABLE_POINTER_LOCK_DESCRIPTION" desc="Description for the flag to enable the mouse lock feature.">
Web pages may capture the mouse pointer and remove it from the user's control. The mouse movement data is directed solely to the web application. Users can escape by pressing the 'Esc' key.
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index c17ea11..923008a 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)
{