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

Unified Diff: chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc

Issue 2759333002: Move chrome-specific SerializedNavigation code to chrome/. (Closed)
Patch Set: Fix Android 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
« no previous file with comments | « chrome/browser/ui/browser_navigator.cc ('k') | chrome/browser/ui/webui/md_history_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 09e52a67941419809d00144bada14db2b4bedf19..e762d22d2090a92f6a80ef72beeaabda04a2af43 100644
--- a/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
+++ b/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
@@ -80,7 +80,6 @@
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_ui.h"
#include "content/public/common/content_client.h"
-#include "content/public/common/url_constants.h"
#include "content/public/common/url_utils.h"
#include "device/vr/features.h"
#include "extensions/features/features.h"
@@ -438,7 +437,7 @@ WebUIFactoryFunction GetWebUIFactoryFunction(WebUI* web_ui,
}
// Material Design history is on its own host, rather than on an Uber page.
if (base::FeatureList::IsEnabled(features::kMaterialDesignHistory) &&
- url.host_piece() == content::kChromeUIHistoryHost) {
+ url.host_piece() == chrome::kChromeUIHistoryHost) {
return &NewWebUI<MdHistoryUI>;
}
// Material Design Settings gets its own host, if enabled.
@@ -797,7 +796,7 @@ base::RefCountedMemory* ChromeWebUIControllerFactory::GetFaviconResourceBytes(
if (page_url.host_piece() == chrome::kChromeUIFlagsHost)
return FlagsUI::GetFaviconResourceBytes(scale_factor);
- if (page_url.host_piece() == content::kChromeUIHistoryHost)
+ if (page_url.host_piece() == chrome::kChromeUIHistoryHost)
return HistoryUI::GetFaviconResourceBytes(scale_factor);
#if !defined(OS_ANDROID)
« no previous file with comments | « chrome/browser/ui/browser_navigator.cc ('k') | chrome/browser/ui/webui/md_history_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698