summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/options
diff options
context:
space:
mode:
authorderat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-28 00:00:49 +0000
committerderat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-28 00:00:49 +0000
commit403c148688f2c23d2c9b56fff236f4ddfe03377c (patch)
tree158a19de69c72631de04a195600b76a072095040 /chrome/browser/views/options
parentdabdb68e738bf1a9f0ae51e59c188d0ab784f106 (diff)
downloadchromium_src-403c148688f2c23d2c9b56fff236f4ddfe03377c.zip
chromium_src-403c148688f2c23d2c9b56fff236f4ddfe03377c.tar.gz
chromium_src-403c148688f2c23d2c9b56fff236f4ddfe03377c.tar.bz2
GTK: Activate window when "Get themes" button is clicked.
This is a direct copy of the Views fix from r29949. BUG=24866 TESTED=verified that minimized browser window gets restored under metacity Review URL: http://codereview.chromium.org/334048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30286 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/options')
-rw-r--r--chrome/browser/views/options/content_page_view.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/chrome/browser/views/options/content_page_view.cc b/chrome/browser/views/options/content_page_view.cc
index f5e99ff..fef0cbc 100644
--- a/chrome/browser/views/options/content_page_view.cc
+++ b/chrome/browser/views/options/content_page_view.cc
@@ -144,10 +144,7 @@ void ContentPageView::ButtonPressed(
void ContentPageView::LinkActivated(views::Link* source, int event_flags) {
if (source == themes_gallery_link_) {
UserMetricsRecordAction(L"Options_ThemesGallery", profile()->GetPrefs());
- Browser* browser = BrowserList::GetLastActive();
- browser->OpenURL(GURL(l10n_util::GetString(IDS_THEMES_GALLERY_URL)),
- GURL(), NEW_FOREGROUND_TAB, PageTransition::LINK);
- browser->window()->Activate();
+ BrowserList::GetLastActive()->OpenThemeGalleryTabAndActivate();
return;
}
DCHECK_EQ(source, sync_action_link_);