Index: chrome/browser/ui/browser_ui_prefs.cc |
diff --git a/chrome/browser/ui/browser_ui_prefs.cc b/chrome/browser/ui/browser_ui_prefs.cc |
index 0fb1f172ead6118e96839d6ae470224a1ed46d1c..21503a8baefb9d2a2f11385c2f72a1407fc17307 100644 |
--- a/chrome/browser/ui/browser_ui_prefs.cc |
+++ b/chrome/browser/ui/browser_ui_prefs.cc |
@@ -15,6 +15,10 @@ |
#include "components/translate/core/common/translate_pref_names.h" |
#include "content/public/common/webrtc_ip_handling_policy.h" |
+#if defined(OS_WIN) |
+#include "base/win/windows_version.h" |
+#endif |
+ |
namespace chrome { |
void RegisterBrowserPrefs(PrefRegistrySimple* registry) { |
@@ -79,6 +83,12 @@ void RegisterBrowserUserPrefs(user_prefs::PrefRegistrySyncable* registry) { |
registry->RegisterInt64Pref(prefs::kLastClearBrowsingDataTime, 0); |
registry->RegisterIntegerPref(prefs::kModuleConflictBubbleShown, 0); |
registry->RegisterBooleanPref(prefs::kCheckDefaultBrowser, true); |
+ bool reset_check_default = false; |
+#if defined(OS_WIN) |
+ reset_check_default = base::win::GetVersion() >= base::win::VERSION_WIN10; |
+#endif |
+ registry->RegisterBooleanPref(prefs::kResetCheckDefaultBrowser, |
+ reset_check_default); |
registry->RegisterBooleanPref(prefs::kWebAppCreateOnDesktop, true); |
registry->RegisterBooleanPref(prefs::kWebAppCreateInAppsMenu, true); |
registry->RegisterBooleanPref(prefs::kWebAppCreateInQuickLaunchBar, true); |