diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-09 20:54:48 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-09 20:54:48 +0000 |
commit | a4bbdf7a9e474e5d00d35c4abdc36f8e0ee0b72a (patch) | |
tree | 19268616afeaee01129ff593cb6a921b5eb6fb40 /chrome/browser/views/clear_browsing_data.cc | |
parent | 1abb2c763b25063e6eccdf73fc53b3ad1d42a88d (diff) | |
download | chromium_src-a4bbdf7a9e474e5d00d35c4abdc36f8e0ee0b72a.zip chromium_src-a4bbdf7a9e474e5d00d35c4abdc36f8e0ee0b72a.tar.gz chromium_src-a4bbdf7a9e474e5d00d35c4abdc36f8e0ee0b72a.tar.bz2 |
Fixes leak in cookie filter page view and clear browsing data view
that lead to chrome not shutting down.
BUG=34941
TEST=bring up clear browsing data dialog, click on link, close
windows, make sure no chrome processes still around.
Review URL: http://codereview.chromium.org/594012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38500 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/clear_browsing_data.cc')
-rw-r--r-- | chrome/browser/views/clear_browsing_data.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/views/clear_browsing_data.cc b/chrome/browser/views/clear_browsing_data.cc index 2f72759..8625553 100644 --- a/chrome/browser/views/clear_browsing_data.cc +++ b/chrome/browser/views/clear_browsing_data.cc @@ -7,6 +7,7 @@ #include "app/l10n_util.h" #include "app/gfx/insets.h" #include "chrome/browser/browser.h" +#include "chrome/browser/browser_window.h" #include "chrome/browser/profile.h" #include "chrome/browser/search_engines/template_url_model.h" #include "chrome/common/pref_names.h" @@ -384,7 +385,8 @@ void ClearBrowsingDataView::LinkActivated(views::Link* source, int event_flags) { Browser* browser = Browser::Create(profile_); browser->OpenURL(GURL(l10n_util::GetStringUTF8(IDS_FLASH_STORAGE_URL)), - GURL(), NEW_WINDOW, PageTransition::LINK); + GURL(), NEW_FOREGROUND_TAB, PageTransition::LINK); + browser->window()->Show(); } //////////////////////////////////////////////////////////////////////////////// |