Commit 320b3698 authored by fuzzac@gmail.com's avatar fuzzac@gmail.com

Fixed regression caused by 179554 which changed the meaning of...

Fixed regression caused by 179554 which changed the meaning of ToggleFullscreenMode(). Updated BrowserWindowCocoa::Show() accordingly.

BUG=222605
TEST=(1) Start Chrome and enter fullscreen mode.
(2) Quit and restart.
(3) Verify that Chrome started in fullscreen mode, not presentation mode.

Review URL: https://codereview.chromium.org/149093004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@247743 0039d316-1c4b-4281-b951-d872f2087c98
parent 58b7c481
......@@ -22,7 +22,7 @@
#include "chrome/browser/shell_integration.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_command_controller.h"
#include "chrome/browser/ui/browser_commands.h"
#include "chrome/browser/ui/browser_commands_mac.h"
#include "chrome/browser/ui/browser_list.h"
#include "chrome/browser/ui/browser_window_state.h"
#import "chrome/browser/ui/cocoa/browser/avatar_base_controller.h"
......@@ -136,7 +136,7 @@ void BrowserWindowCocoa::Show() {
[window() orderOut:controller_];
[window() miniaturize:controller_];
} else if (initial_show_state_ == ui::SHOW_STATE_FULLSCREEN) {
chrome::ToggleFullscreenMode(browser_);
chrome::ToggleFullscreenWithChromeOrFallback(browser_);
}
initial_show_state_ = ui::SHOW_STATE_DEFAULT;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment