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

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

Issue 1252503007: Added flag simplified-fullscreen-ui. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added link to discussion bug 515747. Created 5 years, 5 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/exclusive_access/fullscreen_controller.cc
diff --git a/chrome/browser/ui/exclusive_access/fullscreen_controller.cc b/chrome/browser/ui/exclusive_access/fullscreen_controller.cc
index fd2b2b89822ebb81e355a39e3b171fc429636da7..5ab36a952b1f32242e14c131e6a61ccbfae7ed16 100644
--- a/chrome/browser/ui/exclusive_access/fullscreen_controller.cc
+++ b/chrome/browser/ui/exclusive_access/fullscreen_controller.cc
@@ -509,6 +509,12 @@ void FullscreenController::ExitFullscreenModeInternal() {
ContentSetting FullscreenController::GetFullscreenSetting() const {
DCHECK(exclusive_access_tab());
+ // If simplified UI is enabled, never ask the user, just auto-allow.
+ // TODO(mgiuca): Should we allow the user to block use of fullscreen?
+ // http://crbug.com/515747.
+ if (ExclusiveAccessManager::IsSimplifiedFullscreenUIEnabled())
+ return CONTENT_SETTING_ALLOW;
+
GURL url = GetRequestingOrigin();
// Always ask on file:// URLs, since we can't meaningfully make the

Powered by Google App Engine
This is Rietveld 408576698