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

Unified Diff: chrome/browser/ui/browser_init.cc

Issue 6665003: Don't show startup infobars in non-startup Browsers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 9 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/process_singleton_linux.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_init.cc
diff --git a/chrome/browser/ui/browser_init.cc b/chrome/browser/ui/browser_init.cc
index 29c74833658105e7f64d92c9981f77191be9769a..3d775c8f72a23a17e6e750d145b909b13fce0116 100644
--- a/chrome/browser/ui/browser_init.cc
+++ b/chrome/browser/ui/browser_init.cc
@@ -890,7 +890,8 @@ void BrowserInit::LaunchWithProfile::ProcessLaunchURLs(
browser = BrowserList::GetLastActiveWithProfile(profile_);
browser = OpenURLsInBrowser(browser, process_startup, adjust_urls);
- AddInfoBarsIfNecessary(browser);
+ if (process_startup)
+ AddInfoBarsIfNecessary(browser);
}
bool BrowserInit::LaunchWithProfile::ProcessStartupURLs(
« no previous file with comments | « chrome/browser/process_singleton_linux.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698