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

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: 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/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 24081851bbe3931c4a4468df7f9b6ad05998ddec..fc339e5ba1ff20b3b63f73a3c4bcbcaf67e042d4 100644
--- a/chrome/browser/ui/webui/options/browser_options_handler.cc
+++ b/chrome/browser/ui/webui/options/browser_options_handler.cc
@@ -1157,11 +1157,10 @@ void BrowserOptionsHandler::OnDefaultBrowserWorkerFinished(
// default browser.
chrome::ResetDefaultBrowserPrompt(Profile::FromWebUI(web_ui()));
} 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