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

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

Issue 1681463003: Preference for Presentation Mode/Fullscreen Toolbar (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2623
Patch Set: Created 4 years, 10 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 9f18156b6f09cca7b8ef2857e9901875a6db8cd8..59c3ed52af2fa3717372abfd7fde169504951f2f 100644
--- a/chrome/browser/ui/exclusive_access/fullscreen_controller.cc
+++ b/chrome/browser/ui/exclusive_access/fullscreen_controller.cc
@@ -432,7 +432,8 @@ void FullscreenController::ToggleFullscreenModeInternal(
// FullscreenWithoutChrome and FullscreenWithToolbar.
if (exclusive_access_context->IsFullscreen() &&
!IsWindowFullscreenForTabOrPending() &&
- exclusive_access_context->SupportsFullscreenWithToolbar()) {
+ exclusive_access_context->SupportsFullscreenWithToolbar() &&
+ IsExtensionFullscreenOrPending()) {
if (option == BROWSER_WITH_TOOLBAR) {
enter_fullscreen = enter_fullscreen ||
!exclusive_access_context->IsFullscreenWithToolbar();

Powered by Google App Engine
This is Rietveld 408576698