diff options
-rw-r--r-- | chrome/browser/browser.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc index 4cb99e5..cf1af8c 100644 --- a/chrome/browser/browser.cc +++ b/chrome/browser/browser.cc @@ -390,8 +390,8 @@ std::wstring Browser::GetWindowPlacementKey() const { } bool Browser::ShouldSaveWindowPlacement() const { - // We don't save window position for popups. - return (type() & TYPE_POPUP) == 0; + // Only save the window placement of popups if they are restored. + return (type() & TYPE_POPUP) == 0 || browser_defaults::kRestorePopups; } void Browser::SaveWindowPlacement(const gfx::Rect& bounds, bool maximized) { |