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

Unified Diff: chrome/browser/ui/startup/default_browser_prompt.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: Reverted the most recent name change. 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/default_browser_prompt.cc
diff --git a/chrome/browser/ui/startup/default_browser_prompt.cc b/chrome/browser/ui/startup/default_browser_prompt.cc
index 39ae0d4183ab35192c172955f33bb2f3f14c33ad..0f378de09a9b10e1e614b28d6153d37655b7feec 100644
--- a/chrome/browser/ui/startup/default_browser_prompt.cc
+++ b/chrome/browser/ui/startup/default_browser_prompt.cc
@@ -181,12 +181,10 @@ namespace chrome {
void ShowDefaultBrowserPrompt(Profile* profile) {
// We do not check if we are the default browser if:
// - the user said "don't ask me again" on the infobar earlier.
- // - this is the first launch after the first run flow.
// - There is a policy in control of this setting.
- if (!profile->GetPrefs()->GetBoolean(prefs::kCheckDefaultBrowser) ||
- first_run::IsChromeFirstRun()) {
+ if (!profile->GetPrefs()->GetBoolean(prefs::kCheckDefaultBrowser))
return;
- }
+
if (g_browser_process->local_state()->IsManagedPreference(
prefs::kDefaultBrowserSettingEnabled)) {
if (g_browser_process->local_state()->GetBoolean(

Powered by Google App Engine
This is Rietveld 408576698