| Index: extensions/browser/app_window/app_window.cc
|
| diff --git a/extensions/browser/app_window/app_window.cc b/extensions/browser/app_window/app_window.cc
|
| index 08d2e56127789ace1e1021c84167de0af0e59140..5989d61730ec9a6abd5e5ac7079216706c493414 100644
|
| --- a/extensions/browser/app_window/app_window.cc
|
| +++ b/extensions/browser/app_window/app_window.cc
|
| @@ -61,6 +61,8 @@
|
| #include "extensions/browser/pref_names.h"
|
| #endif
|
|
|
| +#include "ui/aura/window.h"
|
| +
|
| using content::BrowserContext;
|
| using content::ConsoleMessageLevel;
|
| using content::WebContents;
|
| @@ -504,7 +506,9 @@ void AppWindow::OnNativeWindowChanged() {
|
| RestoreAlwaysOnTop(); // Same as in SetNativeWindowFullscreen.
|
| #endif
|
|
|
| - SaveWindowPosition();
|
| + // Do not update the position when the window is no longer visible.
|
| + if (native_app_window_->GetNativeWindow()->IsVisible())
|
| + SaveWindowPosition();
|
|
|
| #if defined(OS_WIN)
|
| if (cached_always_on_top_ && !IsFullscreen() &&
|
|
|