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

Unified Diff: chrome/browser/browser_about_handler.cc

Issue 2743323005: MD Settings: enhance restarting Chrome + interacting w/ session restore (Closed)
Patch Set: merge Created 3 years, 9 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 96c0189a0006c579826dc135d95f151de0c89700..8034f4c0c0a92e29ad960930c2cecc9eaafdc86d 100644
--- a/chrome/browser/browser_about_handler.cc
+++ b/chrome/browser/browser_about_handler.cc
@@ -80,7 +80,7 @@ bool WillHandleBrowserAboutURL(GURL* url,
path = chrome::kChromeUIExtensionsHost + url->path();
}
// Redirect chrome://settings/extensions (legacy URL).
- } else if (host == chrome::kChromeUISettingsHost &&
+ } else if (host == content::kChromeUISettingsHost &&
url->path() ==
std::string("/") + chrome::kDeprecatedExtensionsSubPage) {
host = chrome::kChromeUIUberHost;
@@ -108,26 +108,26 @@ bool WillHandleBrowserAboutURL(GURL* url,
}
#endif
// Redirect chrome://settings, unless MD settings is enabled.
- } else if (host == chrome::kChromeUISettingsHost) {
+ } else if (host == content::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();
+ path = content::kChromeUISettingsHost + url->path();
}
// Redirect chrome://help, unless MD settings is enabled.
- } else if (host == chrome::kChromeUIHelpHost) {
+ } else if (host == content::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;
+ path = content::kChromeUIHelpHost;
} else {
host = chrome::kChromeUIUberHost;
- path = chrome::kChromeUIHelpHost + url->path();
+ path = content::kChromeUIHelpHost + url->path();
}
}

Powered by Google App Engine
This is Rietveld 408576698