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

Unified Diff: chrome/browser/ui/webui/chrome_web_ui_controller_factory.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 | « chrome/browser/ui/chrome_pages.cc ('k') | chrome/browser/ui/webui/uber/uber_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
diff --git a/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc b/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
index 1085b740a2247975eb87dfb9890a99279c1b5000..535197e87b92272b5bc1c60d8c26f235df35dedc 100644
--- a/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
+++ b/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
@@ -18,6 +18,7 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/search/suggestions/suggestions_ui.h"
+#include "chrome/browser/ui/chrome_pages.h"
#include "chrome/browser/ui/webui/about_ui.h"
#include "chrome/browser/ui/webui/bookmarks_ui.h"
#include "chrome/browser/ui/webui/components_ui.h"
@@ -397,7 +398,7 @@ WebUIFactoryFunction GetWebUIFactoryFunction(WebUI* web_ui,
return &NewWebUI<IdentityInternalsUI>;
if (url.host() == chrome::kChromeUINewTabHost)
return &NewWebUI<NewTabUI>;
- if (url.host() == chrome::kChromeUIMdSettingsHost)
+ if (url.host() == chrome::GetMdSettingsHost())
return &NewWebUI<settings::MdSettingsUI>;
// If the material design extensions page is enabled, it gets its own host.
// Otherwise, it's handled by the uber settings page.
@@ -416,7 +417,7 @@ WebUIFactoryFunction GetWebUIFactoryFunction(WebUI* web_ui,
// Handle chrome://settings if settings in a window and about in settings
// are enabled.
if (url.host() == chrome::kChromeUISettingsFrameHost ||
- (url.host() == chrome::kChromeUISettingsHost &&
+ (url.host() == chrome::GetLegacySettingsHost() &&
::switches::AboutInSettingsEnabled())) {
return &NewWebUI<options::OptionsUI>;
}
@@ -776,9 +777,9 @@ base::RefCountedMemory* ChromeWebUIControllerFactory::GetFaviconResourceBytes(
return MdDownloadsUI::GetFaviconResourceBytes(scale_factor);
// Android doesn't use the Options/Settings pages.
- if (page_url.host() == chrome::kChromeUISettingsHost ||
+ if (page_url.host() == chrome::GetLegacySettingsHost() ||
page_url.host() == chrome::kChromeUISettingsFrameHost ||
- page_url.host() == chrome::kChromeUIMdSettingsHost)
+ page_url.host() == chrome::GetMdSettingsHost())
return settings_utils::GetFaviconResourceBytes(scale_factor);
#if defined(ENABLE_EXTENSIONS)
« no previous file with comments | « chrome/browser/ui/chrome_pages.cc ('k') | chrome/browser/ui/webui/uber/uber_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698