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

Unified Diff: chrome/browser/ui/browser_commands_mac.cc

Issue 523233002: mac: Remove simplified fullscreen. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@new_fullscreen2
Patch Set: Rebase against top of tree. Created 6 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
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/ui/cocoa/browser_window_cocoa.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_commands_mac.cc
diff --git a/chrome/browser/ui/browser_commands_mac.cc b/chrome/browser/ui/browser_commands_mac.cc
index 393b6ee78b85a4e1d7bc446c1f53eeed756ea0fd..51002fc48278b01ec6b82be6c37e9af0b5662056 100644
--- a/chrome/browser/ui/browser_commands_mac.cc
+++ b/chrome/browser/ui/browser_commands_mac.cc
@@ -16,12 +16,7 @@ namespace chrome {
void ToggleFullscreenWithChromeOrFallback(Browser* browser) {
DCHECK(browser);
- // In simplified fullscreen mode, the "WithChrome" variant does not exist.
- // Call into the standard cross-platform fullscreen method instead.
- const CommandLine* command_line = CommandLine::ForCurrentProcess();
- if (command_line->HasSwitch(switches::kEnableSimplifiedFullscreen))
- ToggleFullscreenMode(browser);
- else if (chrome::mac::SupportsSystemFullscreen())
+ if (chrome::mac::SupportsSystemFullscreen())
browser->fullscreen_controller()->ToggleBrowserFullscreenWithChrome();
else
ToggleFullscreenMode(browser);
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/ui/cocoa/browser_window_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698