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

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: Complete rewrite; add flag and just remove prompting behind the flag. 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..62df9c1357bca78d18c3ede81a78ab56868c1358 100644
--- a/chrome/browser/ui/exclusive_access/fullscreen_controller.cc
+++ b/chrome/browser/ui/exclusive_access/fullscreen_controller.cc
@@ -509,6 +509,10 @@ void FullscreenController::ExitFullscreenModeInternal() {
ContentSetting FullscreenController::GetFullscreenSetting() const {
DCHECK(exclusive_access_tab());
+ // If simplified UI is enabled, never ask the user, just auto-allow.
scheib 2015/07/30 18:32:27 I must be rusty on this, but, woah, why doesn't fu
Matt Giuca 2015/07/31 03:12:50 Interesting. Well I just filed http://crbug.com/51
+ 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