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

Unified Diff: chrome/browser/ui/cocoa/presentation_mode_controller.mm

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
Index: chrome/browser/ui/cocoa/presentation_mode_controller.mm
diff --git a/chrome/browser/ui/cocoa/presentation_mode_controller.mm b/chrome/browser/ui/cocoa/presentation_mode_controller.mm
index ccba724835b733d0fa08c89810947651d9e5db0a..0448db2efeb818d725e850ebaabc940224e55cd7 100644
--- a/chrome/browser/ui/cocoa/presentation_mode_controller.mm
+++ b/chrome/browser/ui/cocoa/presentation_mode_controller.mm
@@ -8,6 +8,7 @@
#include "base/command_line.h"
#import "base/mac/mac_util.h"
+#include "chrome/browser/fullscreen.h"
#import "chrome/browser/ui/cocoa/browser_window_controller.h"
#include "chrome/common/chrome_switches.h"
#import "third_party/GTM/AppKit/GTMNSAnimation+Duration.h"
@@ -421,7 +422,7 @@ const CGFloat kFloatingBarVerticalOffset = 22;
}
- (BOOL)shouldToggleMenuBar {
- return base::mac::IsOSSnowLeopard() &&
+ return !chrome::mac::SupportsSystemFullscreen() &&
[self isWindowOnPrimaryScreen] &&
[[browserController_ window] isMainWindow];
}

Powered by Google App Engine
This is Rietveld 408576698