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

Unified Diff: chrome/browser/ui/browser_ui_prefs.cc

Issue 1578013002: Reset browser.check_default_browser on update. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Missing line Created 4 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/ui/startup/default_browser_prompt.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | chrome/browser/ui/startup/default_browser_prompt.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698