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..a51ea2af8f974de0fffffa51ac37d51ca36b44ab 100644 |
--- a/chrome/browser/ui/startup/default_browser_prompt_win.cc |
+++ b/chrome/browser/ui/startup/default_browser_prompt_win.cc |
@@ -61,10 +61,7 @@ void SetMetroBrowserFlowLauncher::Observe( |
// Unregister and delete. |
registrar_.RemoveAll(); |
- bool as_dialog = |
- profile_->GetPrefs()->GetBoolean(prefs::kDefaultBrowserFlowDialog); |
- |
- SetAsDefaultBrowserUI::Show(profile_, browser, as_dialog); |
+ SetAsDefaultBrowserUI::Show(profile_, browser); |
delete this; |
} |
@@ -76,7 +73,9 @@ void ShowFirstRunDefaultBrowserPrompt(Profile* profile) { |
if ((ShellIntegration::IsDefaultBrowser() == |
ShellIntegration::NOT_DEFAULT_WEB_CLIENT) && |
(ShellIntegration::CanSetAsDefaultBrowser() == |
- ShellIntegration::SET_DEFAULT_INTERACTIVE)) { |
+ ShellIntegration::SET_DEFAULT_INTERACTIVE) && |
+ profile->GetPrefs()->GetBoolean( |
grt (UTC plus 2)
2012/07/05 17:16:09
if my suggestion about kDefaultBrowserFlowDialogEn
motek.
2012/07/05 20:22:26
Done.
|
+ prefs::kDefaultBrowserFlowDialogEnabled)) { |
// If the only available mode of setting the default browser requires |
// user interaction, it means this couldn't have been done yet. |
SetMetroBrowserFlowLauncher::LaunchSoon(profile); |