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

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

Issue 18576005: [Mac] Adds a flag to force 10.6-style fullscreen for testing. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebased. Created 7 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
« no previous file with comments | « chrome/browser/fullscreen_mac.mm ('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 e7304de621c778e72b8ccb585d3b34ba60eff828..3a18758fb53429ef6d88860f25734560c0d55ea4 100644
--- a/chrome/browser/ui/browser_commands_mac.cc
+++ b/chrome/browser/ui/browser_commands_mac.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/ui/browser_commands_mac.h"
#include "base/mac/mac_util.h"
+#include "chrome/browser/fullscreen.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_commands.h"
#include "chrome/browser/ui/fullscreen/fullscreen_controller.h"
@@ -12,7 +13,7 @@
namespace chrome {
void ToggleFullscreenWithChromeOrFallback(Browser* browser) {
- if (base::mac::IsOSLionOrLater())
+ if (chrome::mac::SupportsSystemFullscreen())
browser->fullscreen_controller()->ToggleFullscreenWithChrome();
else
ToggleFullscreenMode(browser);
« no previous file with comments | « chrome/browser/fullscreen_mac.mm ('k') | chrome/browser/ui/cocoa/browser_window_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698