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

Unified Diff: chrome/browser/browser_init.cc

Issue 437053: In-application Keystone ticket promotion (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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/browser_main_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_init.cc
===================================================================
--- chrome/browser/browser_init.cc (revision 33240)
+++ chrome/browser/browser_init.cc (working copy)
@@ -43,6 +43,10 @@
#include "net/base/net_util.h"
#include "webkit/glue/webkit_glue.h"
+#if defined(OS_MACOSX)
+#include "chrome/browser/cocoa/keystone_infobar.h"
+#endif
+
#if defined(OS_WIN)
#include "app/win_util.h"
#endif
@@ -450,10 +454,18 @@
browser = BrowserList::GetLastActive();
OpenURLsInBrowser(browser, process_startup, urls_to_open);
}
- // Check whether we are the default browser.
- if (process_startup && browser_defaults::kOSSupportsOtherBrowsers &&
- !command_line_.HasSwitch(switches::kNoDefaultBrowserCheck))
- CheckDefaultBrowser(profile);
+ if (process_startup) {
+ if (browser_defaults::kOSSupportsOtherBrowsers &&
+ !command_line_.HasSwitch(switches::kNoDefaultBrowserCheck)) {
+ // Check whether we are the default browser.
+ CheckDefaultBrowser(profile);
+ }
+#if defined(OS_MACOSX)
+ // Check whether the auto-update system needs to be promoted from user
+ // to system.
+ KeystoneInfoBar::PromotionInfoBar(profile);
+#endif
+ }
} else {
RecordLaunchModeHistogram(LM_AS_WEBAPP);
}
« no previous file with comments | « chrome/browser/browser.cc ('k') | chrome/browser/browser_main_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698