diff options
author | beng@google.com <beng@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-13 20:56:39 +0000 |
---|---|---|
committer | beng@google.com <beng@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-13 20:56:39 +0000 |
commit | 8387d43fea7fa7153f02c6305000fe1cc674a25d (patch) | |
tree | f967dccc389217cfa776473862d9ddba064dea9a /chrome/browser/browser.cc | |
parent | cba5d987abca6016a534dce83136141869c18aac (diff) | |
download | chromium_src-8387d43fea7fa7153f02c6305000fe1cc674a25d.zip chromium_src-8387d43fea7fa7153f02c6305000fe1cc674a25d.tar.gz chromium_src-8387d43fea7fa7153f02c6305000fe1cc674a25d.tar.bz2 |
Don't save the window position of popup windows.
B=1031854
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@825 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser.cc')
-rw-r--r-- | chrome/browser/browser.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc index 127312b..b1c5d88 100644 --- a/chrome/browser/browser.cc +++ b/chrome/browser/browser.cc @@ -1767,6 +1767,10 @@ NavigationController* Browser::GetSelectedNavigationController() const { // DO NOT PLACE METHODS NOT RELATED TO NEW FRAMES BELOW THIS LINE. void Browser::SaveWindowPosition(const gfx::Rect& bounds, bool maximized) { + // We don't save window position for popups. + if (GetType() == BrowserType::BROWSER) + return; + // First save to local state, this is for remembering on subsequent starts. PrefService* prefs = g_browser_process->local_state(); DCHECK(prefs); |