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

Unified Diff: chrome/browser/ui/startup/default_browser_prompt_win.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: 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_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);

Powered by Google App Engine
This is Rietveld 408576698