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

Unified Diff: chrome/browser/ui/fullscreen/fullscreen_controller.cc

Issue 10917278: Remove mouse lock / pointer lock flags. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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: chrome/browser/ui/fullscreen/fullscreen_controller.cc
diff --git a/chrome/browser/ui/fullscreen/fullscreen_controller.cc b/chrome/browser/ui/fullscreen/fullscreen_controller.cc
index 236bc2ee22e60a4ef01a12f950277871503cf4ce..d1fcc63f4311d0fd968c486a3e431ff8d59d65f0 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

Powered by Google App Engine
This is Rietveld 408576698