| Index: chrome/browser/ui/ash/chrome_shell_delegate.cc
|
| diff --git a/chrome/browser/ui/ash/chrome_shell_delegate.cc b/chrome/browser/ui/ash/chrome_shell_delegate.cc
|
| index 7c8b3af17e38cd23889ebc4a8350d0d5a8e22c5d..c9a68218591a8363569f9ba99a08998b890145c6 100644
|
| --- a/chrome/browser/ui/ash/chrome_shell_delegate.cc
|
| +++ b/chrome/browser/ui/ash/chrome_shell_delegate.cc
|
| @@ -182,6 +182,18 @@ void ChromeShellDelegate::NewWindow(bool is_incognito) {
|
| is_incognito ? profile->GetOffTheRecordProfile() : profile);
|
| }
|
|
|
| +void ChromeShellDelegate::ToggleMaximized() {
|
| + aura::Window* window = ash::wm::GetActiveWindow();
|
| + if (!window)
|
| + return;
|
| + // Get out of fullscreen when in fullscreen mode.
|
| + if (ash::wm::IsWindowFullscreen(window)) {
|
| + chrome::ToggleFullscreenMode(GetTargetBrowser());
|
| + return;
|
| + }
|
| + ash::wm::ToggleMaximizedWindow(window);
|
| +}
|
| +
|
| void ChromeShellDelegate::OpenFileManager(bool as_dialog) {
|
| #if defined(OS_CHROMEOS)
|
| if (as_dialog) {
|
|
|