summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/browser_window_controller.mm
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/cocoa/browser_window_controller.mm')
-rw-r--r--chrome/browser/cocoa/browser_window_controller.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/cocoa/browser_window_controller.mm b/chrome/browser/cocoa/browser_window_controller.mm
index 7c37bbb..8daa0d9 100644
--- a/chrome/browser/cocoa/browser_window_controller.mm
+++ b/chrome/browser/cocoa/browser_window_controller.mm
@@ -887,9 +887,9 @@ willPositionSheet:(NSWindow*)sheet
// Hide the menubar, and allow it to un-hide when moving the mouse
// to the top of the screen. Does this eliminate the need for an
// info bubble describing how to exit fullscreen mode?
- SetSystemUIMode(kUIModeAllHidden, kUIOptionAutoShowMenuBar);
+ mac_util::RequestFullScreen();
} else {
- SetSystemUIMode(kUIModeNormal, 0);
+ mac_util::ReleaseFullScreen();
[[[self window] contentView] addSubview:[toolbarController_ view]];
if (browser_->SupportsWindowFeature(Browser::FEATURE_BOOKMARKBAR)) {
[bookmarkBarController_ setBookmarkBarEnabled:YES];