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

Unified Diff: chrome/browser/extensions/extension_install_ui.cc

Issue 2659004: Show theme loading info bubble and info bars in last normal browser. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 6 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/download/download_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_install_ui.cc
diff --git a/chrome/browser/extensions/extension_install_ui.cc b/chrome/browser/extensions/extension_install_ui.cc
index 552e231650e3faccb1bacc38e41ea9f1adb09231..dfd3ef616980c5f30331099c167219a42f128f3b 100644
--- a/chrome/browser/extensions/extension_install_ui.cc
+++ b/chrome/browser/extensions/extension_install_ui.cc
@@ -305,7 +305,10 @@ void ExtensionInstallUI::ShowThemeInfoBar(
if (!new_theme->IsTheme())
return;
- Browser* browser = BrowserList::GetLastActiveWithProfile(profile);
+ // Get last active normal browser of profile.
+ Browser* browser = BrowserList::FindBrowserWithType(profile,
+ Browser::TYPE_NORMAL,
+ false);
if (!browser)
return;
« no previous file with comments | « chrome/browser/download/download_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698