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

Unified Diff: chrome/browser/browser_about_handler.cc

Issue 2654423002: MD Settings: Redirect chrome://chrome to MD About when MD Settings is on (Closed)
Patch Set: Created 3 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_about_handler.cc
diff --git a/chrome/browser/browser_about_handler.cc b/chrome/browser/browser_about_handler.cc
index 2273e600ec317775bea759d830063d49e94ab6d7..6006a1bf7d6b593b7210183a2f2a29365316a648 100644
--- a/chrome/browser/browser_about_handler.cc
+++ b/chrome/browser/browser_about_handler.cc
@@ -128,6 +128,12 @@ bool WillHandleBrowserAboutURL(GURL* url,
host = chrome::kChromeUIUberHost;
path = chrome::kChromeUIHelpHost + url->path();
}
+ // Redirect chrome://chrome to chrome://settings/help, only for MD settings.
+ } else if (host == chrome::kChromeUIUberHost &&
+ base::FeatureList::IsEnabled(features::kMaterialDesignSettings) &&
+ (url->path().empty() || url->path() == "/")) {
+ host = chrome::kChromeUISettingsHost;
+ path = chrome::kChromeUIHelpHost;
}
GURL::Replacements replacements;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698