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

Unified Diff: chrome/browser/ui/gtk/page_info_bubble_gtk.cc

Issue 7715032: gtk: Change BrowserList::GetLastActive() to GetLastActiveWithProfile() in page_info_bubble_gtk.cc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/page_info_bubble_gtk.cc
diff --git a/chrome/browser/ui/gtk/page_info_bubble_gtk.cc b/chrome/browser/ui/gtk/page_info_bubble_gtk.cc
index e6c2edf2ba00925d6913b0efae09c64acdc804b5..58cac1af58eb0fd546d196714a39b9ed52f36828 100644
--- a/chrome/browser/ui/gtk/page_info_bubble_gtk.cc
+++ b/chrome/browser/ui/gtk/page_info_bubble_gtk.cc
@@ -81,6 +81,8 @@ class PageInfoBubbleGtk : public PageInfoModelObserver,
BubbleGtk* bubble_;
+ Profile* profile_;
+
DISALLOW_COPY_AND_ASSIGN(PageInfoBubbleGtk);
};
@@ -95,7 +97,8 @@ PageInfoBubbleGtk::PageInfoBubbleGtk(gfx::NativeWindow parent,
cert_id_(ssl.cert_id()),
parent_(parent),
contents_(NULL),
- theme_service_(GtkThemeService::GetFrom(profile)) {
+ theme_service_(GtkThemeService::GetFrom(profile)),
+ profile_(profile) {
BrowserWindowGtk* browser_window =
BrowserWindowGtk::GetBrowserWindowForNativeWindow(parent);
@@ -224,7 +227,7 @@ void PageInfoBubbleGtk::OnViewCertLinkClicked(GtkWidget* widget) {
void PageInfoBubbleGtk::OnHelpLinkClicked(GtkWidget* widget) {
GURL url = google_util::AppendGoogleLocaleParam(
GURL(chrome::kPageInfoHelpCenterURL));
- Browser* browser = BrowserList::GetLastActive();
+ Browser* browser = BrowserList::GetLastActiveWithProfile(profile_);
browser->OpenURL(url, GURL(), NEW_FOREGROUND_TAB, PageTransition::LINK);
bubble_->Close();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698