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

Unified Diff: chrome/browser/browser_about_handler.cc

Issue 2913343002: Start removing deprecated Options UI code (Closed)
Patch Set: Created 3 years, 7 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/browser_about_handler.cc
diff --git a/chrome/browser/browser_about_handler.cc b/chrome/browser/browser_about_handler.cc
index 8fc14bc3aca4b009e2f52423289b5a081497c45e..0d48d22b66458b82acae827ee0b315ef8bfb948e 100644
--- a/chrome/browser/browser_about_handler.cc
+++ b/chrome/browser/browser_about_handler.cc
@@ -92,26 +92,10 @@ bool WillHandleBrowserAboutURL(GURL* url,
path = url->path();
// Redirect chrome://settings, unless MD settings is enabled.
dpapad 2017/06/01 00:12:54 Comment obsolete?
Dan Beam 2017/06/03 00:11:02 Done.
} else if (host == chrome::kChromeUISettingsHost) {
- if (base::FeatureList::IsEnabled(features::kMaterialDesignSettings)) {
- return true; // Prevent further rewriting - this is a valid URL.
- } else if (::switches::SettingsWindowEnabled()) {
- host = chrome::kChromeUISettingsFrameHost;
- } else {
- host = chrome::kChromeUIUberHost;
- path = chrome::kChromeUISettingsHost + url->path();
- }
+ return true; // Prevent further rewriting - this is a valid URL.
// Redirect chrome://help, unless MD settings is enabled.
} else if (host == chrome::kChromeUIHelpHost) {
- if (base::FeatureList::IsEnabled(features::kMaterialDesignSettings)) {
- return false; // Handled in the HandleWebUI handler.
- } else if (::switches::SettingsWindowEnabled()) {
- host = chrome::kChromeUISettingsFrameHost;
- if (url->path().empty() || url->path() == "/")
- path = chrome::kChromeUIHelpHost;
- } else {
- host = chrome::kChromeUIUberHost;
- path = chrome::kChromeUIHelpHost + url->path();
- }
+ return false; // Handled in the HandleWebUI handler.
}
GURL::Replacements replacements;

Powered by Google App Engine
This is Rietveld 408576698