summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/browser_ui_prefs.cc
diff options
context:
space:
mode:
authormotek@chromium.org <motek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-03 18:47:44 +0000
committermotek@chromium.org <motek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-03 18:47:44 +0000
commiteed7325721a62b0889a31abdc658bfc0b0cddb32 (patch)
tree393137221b5c792f2377a5c4d65317b8351ab248 /chrome/browser/ui/browser_ui_prefs.cc
parentbf9975d18ca5570cc7a8ebd2dc78e6b7cb29ec67 (diff)
downloadchromium_src-eed7325721a62b0889a31abdc658bfc0b0cddb32.zip
chromium_src-eed7325721a62b0889a31abdc658bfc0b0cddb32.tar.gz
chromium_src-eed7325721a62b0889a31abdc658bfc0b0cddb32.tar.bz2
Adds browser preferences to configure first-run flow on Windows 8.
- master_prefefrencs/installerdata file may now contain { "distribution": { "suppress_first_run_default_browser_prompt": true } } to suppress the Win8+ first-run dialog that walks the user through making Chrome the default browser. If the dialog is suppressed, the default browser butterbar/prompt appears on first run instead. - master_preferences/installerdata file may now contain { "browser": { "suppress_switch_to_metro_mode_on_set_default": true } } to suppress switching to metro mode on Win8+ immediately after Chrome is made the default browser via the first-run dialog. This CL also removes the non-dialog mode of SetAsDefaultBrowserUI and fixes a problem where the dialog would be shown only when master preferences were not given. BUG=135255,135256,135257 TEST=Verify that modifiers described above act as advertised in setup procedure on Win8. If both prefs are absent, the program should show a modal set-default dialog and upon successful change restart Chrome *into the normal first-run flow* in Metro. Note that butter-bar set default is not expected to restart into metro. Review URL: https://chromiumcodereview.appspot.com/10702097 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149881 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/browser_ui_prefs.cc')
-rw-r--r--chrome/browser/ui/browser_ui_prefs.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/chrome/browser/ui/browser_ui_prefs.cc b/chrome/browser/ui/browser_ui_prefs.cc
index 1d4d8e5..19eb514 100644
--- a/chrome/browser/ui/browser_ui_prefs.cc
+++ b/chrome/browser/ui/browser_ui_prefs.cc
@@ -82,9 +82,13 @@ void RegisterBrowserUserPrefs(PrefService* prefs) {
prefs->RegisterBooleanPref(prefs::kCheckDefaultBrowser,
true,
PrefService::UNSYNCABLE_PREF);
- prefs->RegisterBooleanPref(prefs::kDefaultBrowserFlowDialog,
- true,
+#if defined(OS_WIN)
+ // As with Mac-spacific code above, it should be in a platform-specific
+ // section somewhere, but there is no good place for it.
+ prefs->RegisterBooleanPref(prefs::kSuppressSwitchToMetroModeOnSetDefault,
+ false,
PrefService::UNSYNCABLE_PREF);
+#endif
prefs->RegisterBooleanPref(prefs::kShowOmniboxSearchHint,
true,
PrefService::UNSYNCABLE_PREF);