Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3463)

Unified Diff: chrome/browser/browser.cc

Issue 334048: GTK: Activate window when "Get themes" button is clicked. (Closed)
Patch Set: merge Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/browser.h ('k') | chrome/browser/gtk/options/content_page_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser.cc
diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc
index 292cea5b5eaece87c415dfd7f656b65796855e87..83f697fe01e5b60a3f5c1597441164181b3bb90a 100644
--- a/chrome/browser/browser.cc
+++ b/chrome/browser/browser.cc
@@ -1230,6 +1230,12 @@ void Browser::OpenExtensionsTab() {
PageTransition::AUTO_BOOKMARK, true, -1, false, NULL);
}
+void Browser::OpenThemeGalleryTabAndActivate() {
+ OpenURL(GURL(l10n_util::GetStringUTF8(IDS_THEMES_GALLERY_URL)),
+ GURL(), NEW_FOREGROUND_TAB, PageTransition::LINK);
+ window_->Activate();
+}
+
#if defined(OS_CHROMEOS)
void Browser::ShowControlPanel() {
UserMetrics::RecordAction(L"ShowControlPanel", profile_);
« no previous file with comments | « chrome/browser/browser.h ('k') | chrome/browser/gtk/options/content_page_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698