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..dbdff89a386a66e94502318a6ea6487aecd081aa 100644 |
--- a/chrome/browser/ui/startup/default_browser_prompt.cc |
+++ b/chrome/browser/ui/startup/default_browser_prompt.cc |
@@ -178,13 +178,14 @@ void CheckDefaultBrowserCallback() { |
namespace chrome { |
-void ShowDefaultBrowserPrompt(Profile* profile) { |
+void ShowDefaultBrowserPrompt(Profile* profile, |
+ bool permit_prompt_on_first_run) { |
// 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()) { |
+ (first_run::IsChromeFirstRun() && !permit_prompt_on_first_run)) { |
return; |
} |
if (g_browser_process->local_state()->IsManagedPreference( |