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

Unified Diff: chrome/browser/download/download_manager.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/browser.cc ('k') | chrome/browser/extensions/extension_install_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_manager.cc
diff --git a/chrome/browser/download/download_manager.cc b/chrome/browser/download/download_manager.cc
index 71b6ea64fa6217b98be4493d741887021270bfaf..63bb557d2c0f577d15a3e9b8a6dd3125d1a776fc 100644
--- a/chrome/browser/download/download_manager.cc
+++ b/chrome/browser/download/download_manager.cc
@@ -1476,7 +1476,9 @@ void DownloadManager::OpenChromeExtension(const FilePath& full_path,
}
} else {
TabContents* contents = NULL;
- Browser* last_active = BrowserList::GetLastActiveWithProfile(profile_);
+ // Get last active normal browser of profile.
+ Browser* last_active = BrowserList::FindBrowserWithType(profile_,
+ Browser::TYPE_NORMAL, false);
if (last_active)
contents = last_active->GetSelectedTabContents();
if (contents) {
« no previous file with comments | « chrome/browser/browser.cc ('k') | chrome/browser/extensions/extension_install_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698