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

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

Issue 24891002: Initial WebUI extension for enhanced bookmarks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 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
« no previous file with comments | « chrome/browser/ui/browser_navigator.cc ('k') | chrome/common/extensions/manifest_url_handler.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 4003e73650515826e9a0c96d581c70f0572c09db..dbaf799a5d9db0087ff36f2ec15b816b63fa7646 100644
--- a/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
+++ b/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
@@ -311,6 +311,11 @@ WebUIFactoryFunction GetWebUIFactoryFunction(WebUI* web_ui,
// Downloads list on Android uses the built-in download manager.
if (url.host() == chrome::kChromeUIDownloadsHost)
return &NewWebUI<DownloadsUI>;
+#if defined(ENABLE_ENHANCED_BOOKMARKS)
+ // Bookmarks are part of NTP on Android.
+ if (url.host() == chrome::kChromeUIEnhancedBookmarksHost)
+ return &NewWebUI<BookmarksUI>;
+#endif
// Flash is not available on android.
if (url.host() == chrome::kChromeUIFlashHost)
return &NewWebUI<FlashUI>;
« no previous file with comments | « chrome/browser/ui/browser_navigator.cc ('k') | chrome/common/extensions/manifest_url_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698