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

Unified Diff: chrome/browser/ui/startup/startup_browser_creator_impl.cc

Issue 10702097: Adds browser preferences to configure first-run flow on Windows 8. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A comment fix. Created 8 years, 5 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
Index: chrome/browser/ui/startup/startup_browser_creator_impl.cc
diff --git a/chrome/browser/ui/startup/startup_browser_creator_impl.cc b/chrome/browser/ui/startup/startup_browser_creator_impl.cc
index ca0e97f30fbaaa825636fa2f1402f35c8b84857b..98f5412a847a88e9575628db4de7bf918d648131 100644
--- a/chrome/browser/ui/startup/startup_browser_creator_impl.cc
+++ b/chrome/browser/ui/startup/startup_browser_creator_impl.cc
@@ -362,8 +362,12 @@ bool StartupBrowserCreatorImpl::Launch(Profile* profile,
if (process_startup) {
if (browser_defaults::kOSSupportsOtherBrowsers &&
!command_line_.HasSwitch(switches::kNoDefaultBrowserCheck)) {
- if (!chrome::ShowAutolaunchPrompt(profile))
- chrome::ShowDefaultBrowserPrompt(profile);
+ if (!chrome::ShowAutolaunchPrompt(profile)) {
+ bool permit_prompt_on_first_run = browser_creator_ &&
grt (UTC plus 2) 2012/07/25 10:54:55 please add a simple comment like: // The prompt is
motek. 2012/07/25 12:10:40 Done.
+ browser_creator_->get_suppressed_set_as_default_dialog();
+ chrome::ShowDefaultBrowserPrompt(profile,
+ permit_prompt_on_first_run);
+ }
}
#if defined(OS_MACOSX)
// Check whether the auto-update system needs to be promoted from user

Powered by Google App Engine
This is Rietveld 408576698