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

Unified Diff: chrome/browser/ui/webui/options/browser_options_handler.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: Sky comments + refactoring 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/ui/webui/options/browser_options_handler.cc
diff --git a/chrome/browser/ui/webui/options/browser_options_handler.cc b/chrome/browser/ui/webui/options/browser_options_handler.cc
index b428690575d30a566edf6beedd450f4cad25283d..ec06efff8d56ca9cb7c7e4a31bd3b377e2145cd3 100644
--- a/chrome/browser/ui/webui/options/browser_options_handler.cc
+++ b/chrome/browser/ui/webui/options/browser_options_handler.cc
@@ -1149,11 +1149,10 @@ void BrowserOptionsHandler::OnDefaultBrowserWorkerFinished(
PrefService* prefs = Profile::FromWebUI(web_ui())->GetPrefs();
prefs->SetBoolean(prefs::kCheckDefaultBrowser, true);
} else if (state == shell_integration::NOT_DEFAULT) {
- if (shell_integration::CanSetAsDefaultBrowser() ==
- shell_integration::SET_DEFAULT_NOT_ALLOWED) {
- status_string_id = IDS_OPTIONS_DEFAULTBROWSER_SXS;
- } else {
+ if (shell_integration::CanSetAsDefaultBrowser()) {
status_string_id = IDS_OPTIONS_DEFAULTBROWSER_NOTDEFAULT;
+ } else {
+ status_string_id = IDS_OPTIONS_DEFAULTBROWSER_SXS;
}
} else if (state == shell_integration::UNKNOWN_DEFAULT) {
status_string_id = IDS_OPTIONS_DEFAULTBROWSER_UNKNOWN;

Powered by Google App Engine
This is Rietveld 408576698