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

Unified Diff: chrome/browser/first_run/first_run.cc

Issue 1832853003: DefaultBrowserWorker now fully supports opening the settings for Win10 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix mac compilation Created 4 years, 8 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/first_run/first_run.cc
diff --git a/chrome/browser/first_run/first_run.cc b/chrome/browser/first_run/first_run.cc
index 734711c935278c3c19d41bb751f88eacfbf13dda..dbe860660cce8a081c956189bffb7aae37df0c64 100644
--- a/chrome/browser/first_run/first_run.cc
+++ b/chrome/browser/first_run/first_run.cc
@@ -463,9 +463,9 @@ installer::MasterPreferences* LoadMasterPrefs() {
// Makes chrome the user's default browser according to policy or
// |make_chrome_default_for_user| if no policy is set.
void ProcessDefaultBrowserPolicy(bool make_chrome_default_for_user) {
- // Only proceed if chrome can be made default unattended. The interactive case
- // (Windows 8+) is handled by the first run default browser prompt.
- if (shell_integration::CanSetAsDefaultBrowser() ==
+ // Only proceed if chrome can be made default unattended. In other cases, this
+ // is handled by the first run default browser prompt (on Windows 8+).
+ if (shell_integration::GetDefaultWebClientSetPermission() ==
shell_integration::SET_DEFAULT_UNATTENDED) {
// The policy has precedence over the user's choice.
if (g_browser_process->local_state()->IsManagedPreference(

Powered by Google App Engine
This is Rietveld 408576698