Chromium Code Reviews| Index: chrome/browser/ui/startup/default_browser_prompt_win.cc |
| diff --git a/chrome/browser/ui/startup/default_browser_prompt_win.cc b/chrome/browser/ui/startup/default_browser_prompt_win.cc |
| index 770952f9d711de9eb38c127ed9e142af4b06fb9a..0a90a0d6f20c6e5f3950b46cbc51f685763ef513 100644 |
| --- a/chrome/browser/ui/startup/default_browser_prompt_win.cc |
| +++ b/chrome/browser/ui/startup/default_browser_prompt_win.cc |
| @@ -83,4 +83,13 @@ void ShowFirstRunDefaultBrowserPrompt(Profile* profile) { |
| } |
| } |
| +bool ExpectDefaultBrowserPromptDialog(Profile* profile, bool is_first_run) { |
| + return is_first_run && |
| + profile->GetPrefs()->GetBoolean(prefs::kDefaultBrowserFlowDialog) && |
| + (ShellIntegration::IsDefaultBrowser() == |
|
grt (UTC plus 2)
2012/07/05 20:08:47
please swap the CanSetAsDefaultBrowser and IsDefau
motek.
2012/08/08 14:28:35
This part is gone altogether now. Changed above fo
|
| + ShellIntegration::NOT_DEFAULT_WEB_CLIENT) && |
| + (ShellIntegration::CanSetAsDefaultBrowser() == |
| + ShellIntegration::SET_DEFAULT_INTERACTIVE); |
| +} |
| + |
| } // namespace chrome |