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

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

Issue 1240853002: Slice MD downloads into more components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: license Created 5 years, 5 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/resources/md_downloads/toolbar.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/downloads_ui.cc
diff --git a/chrome/browser/ui/webui/downloads_ui.cc b/chrome/browser/ui/webui/downloads_ui.cc
index 1429d67040284cc4adf750c6deac041e9c659324..20a573160ce48ae3ba339e746d0262aff8c3bb6f 100644
--- a/chrome/browser/ui/webui/downloads_ui.cc
+++ b/chrome/browser/ui/webui/downloads_ui.cc
@@ -97,12 +97,22 @@ content::WebUIDataSource* CreateDownloadsUIHTMLSource(Profile* profile) {
IDR_DOWNLOADS_THROTTLED_ICON_LOADER_JS);
if (switches::MdDownloadsEnabled()) {
- source->AddResourcePath("downloads.css", IDR_MD_DOWNLOADS_DOWNLOADS_CSS);
+ source->AddResourcePath("action_service.html",
+ IDR_MD_DOWNLOADS_ACTION_SERVICE_HTML);
+ source->AddResourcePath("action_service.js",
+ IDR_MD_DOWNLOADS_ACTION_SERVICE_JS);
+ source->AddResourcePath("item_view.css", IDR_MD_DOWNLOADS_ITEM_VIEW_CSS);
source->AddResourcePath("item_view.html", IDR_MD_DOWNLOADS_ITEM_VIEW_HTML);
source->AddResourcePath("item_view.js", IDR_MD_DOWNLOADS_ITEM_VIEW_JS);
+ source->AddResourcePath("manager.css", IDR_MD_DOWNLOADS_MANAGER_CSS);
source->AddResourcePath("manager.html", IDR_MD_DOWNLOADS_MANAGER_HTML);
source->AddResourcePath("manager.js", IDR_MD_DOWNLOADS_MANAGER_JS);
+ source->AddResourcePath("shared_style.css",
+ IDR_MD_DOWNLOADS_SHARED_STYLE_CSS);
source->AddResourcePath("strings.html", IDR_MD_DOWNLOADS_STRINGS_HTML);
+ source->AddResourcePath("toolbar.css", IDR_MD_DOWNLOADS_TOOLBAR_CSS);
+ source->AddResourcePath("toolbar.html", IDR_MD_DOWNLOADS_TOOLBAR_HTML);
+ source->AddResourcePath("toolbar.js", IDR_MD_DOWNLOADS_TOOLBAR_JS);
source->SetDefaultResource(IDR_MD_DOWNLOADS_DOWNLOADS_HTML);
} else {
source->AddResourcePath("item_view.js", IDR_DOWNLOADS_ITEM_VIEW_JS);
« no previous file with comments | « chrome/browser/resources/md_downloads/toolbar.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698