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

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

Issue 1414033009: Implement a Menu Item to Hide the Toolbar in Fullscreen (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Hide menu item on 10.6 Created 5 years, 1 month 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 3c7018ccf49f8d54c38ee112054071ec6037fc46..7dc1880d92614206a47b62476efe6b4456fe0543 100644
--- a/chrome/browser/ui/exclusive_access/fullscreen_controller.cc
+++ b/chrome/browser/ui/exclusive_access/fullscreen_controller.cc
@@ -427,20 +427,6 @@ void FullscreenController::ToggleFullscreenModeInternal(
exclusive_access_manager()->context();
bool enter_fullscreen = !exclusive_access_context->IsFullscreen();
- // When a Mac user requests a toggle they may be toggling between
- // FullscreenWithoutChrome and FullscreenWithToolbar.
- if (exclusive_access_context->IsFullscreen() &&
- !IsWindowFullscreenForTabOrPending() &&
- exclusive_access_context->SupportsFullscreenWithToolbar()) {
- if (option == BROWSER_WITH_TOOLBAR) {
- enter_fullscreen = enter_fullscreen ||
- !exclusive_access_context->IsFullscreenWithToolbar();
- } else {
- enter_fullscreen = enter_fullscreen ||
- exclusive_access_context->IsFullscreenWithToolbar();
- }
- }
-
// In kiosk mode, we always want to be fullscreen. When the browser first
// starts we're not yet fullscreen, so let the initial toggle go through.
if (chrome::IsRunningInAppMode() && exclusive_access_context->IsFullscreen())

Powered by Google App Engine
This is Rietveld 408576698