| Index: chrome/browser/ui/views/frame/browser_frame_aura.cc
|
| diff --git a/chrome/browser/ui/views/frame/browser_frame_aura.cc b/chrome/browser/ui/views/frame/browser_frame_aura.cc
|
| index 764e95b5d6a15431b838c9ceef87a95023cc48b8..c7a2df2dc1f5da4feef68b5522f912df3dda5316 100644
|
| --- a/chrome/browser/ui/views/frame/browser_frame_aura.cc
|
| +++ b/chrome/browser/ui/views/frame/browser_frame_aura.cc
|
| @@ -24,6 +24,7 @@
|
|
|
| #if defined(USE_ASH)
|
| #include "ash/wm/property_util.h"
|
| +#include "ash/wm/window_util.h"
|
| #endif
|
|
|
| #if !defined(OS_CHROMEOS)
|
| @@ -109,6 +110,12 @@ BrowserFrameAura::BrowserFrameAura(BrowserFrame* browser_frame,
|
| ash::SetPersistsAcrossAllWorkspaces(
|
| GetNativeWindow(),
|
| ash::WINDOW_PERSISTS_ACROSS_ALL_WORKSPACES_VALUE_NO);
|
| + // Also mark this window as automatically position managed.
|
| + ash::wm::SetWindowPositionManaged(GetNativeWindow(), true);
|
| + // If the browser got restored and was previously positioned by the user,
|
| + // the flag gets restored.
|
| + if (browser_view->browser()->initial_user_has_changed_window_or_position())
|
| + ash::wm::SetUserHasChangedWindowPositionOrSize(GetNativeWindow(), true);
|
| }
|
| #endif
|
| }
|
|
|