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

Unified Diff: chrome/browser/browser_about_handler.cc

Issue 2027813003: [MD Settings] Add feature to enable md-settings by default. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | chrome/browser/ui/chrome_pages.h » ('j') | 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 04274b19630444720285912579e02d40cfcc37a8..1ef7d85a3b6c72f1130279f9c032cf0ad07f5c84 100644
--- a/chrome/browser/browser_about_handler.cc
+++ b/chrome/browser/browser_about_handler.cc
@@ -15,6 +15,7 @@
#include "build/build_config.h"
#include "chrome/browser/lifetime/application_lifetime.h"
#include "chrome/browser/ui/browser_dialogs.h"
+#include "chrome/browser/ui/chrome_pages.h"
#include "chrome/common/chrome_features.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/url_constants.h"
@@ -88,13 +89,13 @@ bool WillHandleBrowserAboutURL(GURL* url,
path = chrome::kChromeUIHistoryHost + url->path();
#endif
}
- // Redirect chrome://settings
- } else if (host == chrome::kChromeUISettingsHost) {
+ // Redirect legacy settings page to uber page.
+ } else if (host == chrome::GetLegacySettingsHost()) {
if (::switches::AboutInSettingsEnabled()) {
host = chrome::kChromeUISettingsFrameHost;
} else {
host = chrome::kChromeUIUberHost;
- path = chrome::kChromeUISettingsHost + url->path();
+ path = chrome::GetLegacySettingsHost() + url->path();
}
// Redirect chrome://help
} else if (host == chrome::kChromeUIHelpHost) {
« no previous file with comments | « no previous file | chrome/browser/ui/chrome_pages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698