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

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

Issue 1340493002: Add initial version of chrome://popular-sites-internals page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@finch_country_version
Patch Set: review3 Created 5 years, 3 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/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 0d5c74510b66f9a200149d487f23bc61447c20c8..5fd36fa7643fc101735c65835e0ecf9e85f17f4e 100644
--- a/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
+++ b/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
@@ -114,6 +114,10 @@
#include "chrome/browser/ui/webui/inspect_ui.h"
#endif
+#if defined(OS_ANDROID)
+#include "chrome/browser/ui/webui/popular_sites_internals_ui.h"
+#endif
+
#if defined(OS_CHROMEOS)
#include "base/sys_info.h"
#include "chrome/browser/ui/webui/chromeos/bluetooth_pairing_ui.h"
@@ -500,6 +504,10 @@ WebUIFactoryFunction GetWebUIFactoryFunction(WebUI* web_ui,
if (url.host() == chrome::kChromeUIInspectHost)
return &NewWebUI<InspectUI>;
#endif
+#if defined(OS_ANDROID)
+ if (url.host() == chrome::kChromeUIPopularSitesInternalsHost)
+ return &NewWebUI<PopularSitesInternalsUI>;
+#endif
#if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) && !defined(OS_IOS)
if (url.host() == chrome::kChromeUIUserManagerHost &&
switches::IsNewAvatarMenu()) {
« no previous file with comments | « chrome/browser/resources/popular_sites_internals.js ('k') | chrome/browser/ui/webui/popular_sites_internals_message_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698