diff options
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/about_flags.cc | 22 | ||||
-rw-r--r-- | chrome/browser/ui/browser_browsertest.cc | 5 | ||||
-rw-r--r-- | chrome/browser/ui/fullscreen/fullscreen_controller.cc | 8 | ||||
-rw-r--r-- | chrome/browser/ui/fullscreen/fullscreen_controller_test.cc | 4 | ||||
-rw-r--r-- | chrome/browser/ui/fullscreen/fullscreen_controller_test.h | 1 | ||||
-rw-r--r-- | chrome/common/chrome_switches.cc | 5 | ||||
-rw-r--r-- | chrome/common/chrome_switches.h | 1 |
7 files changed, 0 insertions, 46 deletions
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc index e793d21..ee0d90f 100644 --- a/chrome/browser/about_flags.cc +++ b/chrome/browser/about_flags.cc @@ -141,14 +141,6 @@ 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, ""} -}; - const Experiment::Choice kAsyncDnsChoices[] = { { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, @@ -548,13 +540,6 @@ const Experiment kExperiments[] = { kOsAll, SINGLE_VALUE_TYPE(switches::kEnableEncryptedMedia) }, - { - "enable-pointer-lock", - IDS_FLAGS_ENABLE_POINTER_LOCK_NAME, - IDS_FLAGS_ENABLE_POINTER_LOCK_DESCRIPTION, - kOsAll, - MULTI_VALUE_TYPE(kPointerLockUIChoices) - }, #if defined(USE_ASH) { "aura-google-dialog-frames", @@ -871,13 +856,6 @@ const Experiment kExperiments[] = { kOsWin | kOsCrOS, SINGLE_VALUE_TYPE(switches::kEnableFramelessConstrainedDialogs), }, - { - "disable-non-fullscreen-mouse-lock", - IDS_FLAGS_DISABLE_NON_FULLSCREEN_MOUSE_LOCK_NAME, - IDS_FLAGS_DISABLE_NON_FULLSCREEN_MOUSE_LOCK_DESCRIPTION, - kOsAll, - SINGLE_VALUE_TYPE(switches::kDisableNonFullscreenMouseLock), - }, #if defined(OS_CHROMEOS) { "enable-unsupported-bluetooth-devices", diff --git a/chrome/browser/ui/browser_browsertest.cc b/chrome/browser/ui/browser_browsertest.cc index d44901a..e78f019 100644 --- a/chrome/browser/ui/browser_browsertest.cc +++ b/chrome/browser/ui/browser_browsertest.cc @@ -187,11 +187,6 @@ class TestInterstitialPage : public content::InterstitialPageDelegate { class BrowserTest : public ExtensionBrowserTest { protected: - virtual void SetUpCommandLine(CommandLine* command_line) { - ExtensionBrowserTest::SetUpCommandLine(command_line); - command_line->AppendSwitch(switches::kEnablePointerLock); - } - // In RTL locales wrap the page title with RTL embedding characters so that it // matches the value returned by GetWindowTitle(). string16 LocaleWindowCaptionFromPageTitle(const string16& expected_title) { diff --git a/chrome/browser/ui/fullscreen/fullscreen_controller.cc b/chrome/browser/ui/fullscreen/fullscreen_controller.cc index 236bc2e..d1fcc63 100644 --- a/chrome/browser/ui/fullscreen/fullscreen_controller.cc +++ b/chrome/browser/ui/fullscreen/fullscreen_controller.cc @@ -170,14 +170,6 @@ void FullscreenController::RequestToLockMouse(WebContents* web_contents, DCHECK(!IsMouseLocked()); NotifyMouseLockChange(); - // Check for command line switch disabling mouse lock when not tab fullscreen. - if (CommandLine::ForCurrentProcess()->HasSwitch( - switches::kDisableNonFullscreenMouseLock) && - !IsFullscreenForTabOrPending(web_contents)) { - web_contents->GotResponseToLockMouseRequest(false); - return; - } - // Must have a user gesture to prevent misbehaving sites from constantly // re-locking the mouse. Exceptions are when the page has unlocked // (i.e. not the user), or if we're in tab fullscreen (user gesture required diff --git a/chrome/browser/ui/fullscreen/fullscreen_controller_test.cc b/chrome/browser/ui/fullscreen/fullscreen_controller_test.cc index cdc4631..da86e2a 100644 --- a/chrome/browser/ui/fullscreen/fullscreen_controller_test.cc +++ b/chrome/browser/ui/fullscreen/fullscreen_controller_test.cc @@ -19,10 +19,6 @@ using content::WebContents; const char FullscreenControllerTest::kFullscreenMouseLockHTML[] = "files/fullscreen_mouselock/fullscreen_mouselock.html"; -void FullscreenControllerTest::SetUpCommandLine(CommandLine* command_line) { - command_line->AppendSwitch(switches::kEnablePointerLock); -} - void FullscreenControllerTest::RequestToLockMouse( bool user_gesture, bool last_unlocked_by_target) { diff --git a/chrome/browser/ui/fullscreen/fullscreen_controller_test.h b/chrome/browser/ui/fullscreen/fullscreen_controller_test.h index baaea67..eee66d9 100644 --- a/chrome/browser/ui/fullscreen/fullscreen_controller_test.h +++ b/chrome/browser/ui/fullscreen/fullscreen_controller_test.h @@ -38,7 +38,6 @@ class FullscreenControllerTest : public InProcessBrowserTest { protected: FullscreenControllerTest() {} - virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; void RequestToLockMouse(bool user_gesture, bool last_unlocked_by_target); void LostMouseLock(); diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc index ecbd658..b77aa6c 100644 --- a/chrome/common/chrome_switches.cc +++ b/chrome/common/chrome_switches.cc @@ -348,11 +348,6 @@ const char kDisableIPv6[] = "disable-ipv6"; // attempt to use the existing connection. const char kDisableIPPooling[] = "disable-ip-pooling"; -// Disables Mouse Lock being permitted when the browser is not currently -// in tab fullscreen. -const char kDisableNonFullscreenMouseLock[] = - "disable-non-fullscreen-mouse-lock"; - // Disables the menu on the NTP for accessing sessions from other devices. const char kDisableNTPOtherSessionsMenu[] = "disable-ntp-other-sessions-menu"; diff --git a/chrome/common/chrome_switches.h b/chrome/common/chrome_switches.h index 06afe44..73757b0 100644 --- a/chrome/common/chrome_switches.h +++ b/chrome/common/chrome_switches.h @@ -99,7 +99,6 @@ extern const char kDisableInfiniteCache[]; extern const char kDisableInternalFlash[]; extern const char kDisableIPv6[]; extern const char kDisableIPPooling[]; -extern const char kDisableNonFullscreenMouseLock[]; extern const char kDisableNTPOtherSessionsMenu[]; extern const char kDisablePopupBlocking[]; extern const char kDisablePreconnect[]; |