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

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

Issue 1224623013: Port downloads.ItemView to a Polymer component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@p-dl-rough-draft2
Patch Set: merge 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/strings.html ('k') | ui/webui/resources/html/cr/ui.html » ('j') | 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 1b51926186c8e43f01932d3177d7195e85fb8968..8fc489ecf1c6d717fb27c5146c7bbf6df6798de8 100644
--- a/chrome/browser/ui/webui/downloads_ui.cc
+++ b/chrome/browser/ui/webui/downloads_ui.cc
@@ -90,20 +90,26 @@ content::WebUIDataSource* CreateDownloadsUIHTMLSource(Profile* profile) {
!profile->IsSupervised());
source->SetJsonPath("strings.js");
- source->AddResourcePath("constants.js", IDR_DOWNLOAD_CONSTANTS_JS);
+ source->AddResourcePath("constants.html", IDR_DOWNLOADS_CONSTANTS_HTML);
+ source->AddResourcePath("constants.js", IDR_DOWNLOADS_CONSTANTS_JS);
source->AddResourcePath("throttled_icon_loader.html",
- IDR_DOWNLOAD_THROTTLED_ICON_LOADER_HTML);
+ IDR_DOWNLOADS_THROTTLED_ICON_LOADER_HTML);
source->AddResourcePath("throttled_icon_loader.js",
- IDR_DOWNLOAD_THROTTLED_ICON_LOADER_JS);
+ IDR_DOWNLOADS_THROTTLED_ICON_LOADER_JS);
if (switches::MdDownloadsEnabled()) {
- source->AddResourcePath("manager.js", IDR_MD_DOWNLOAD_MANAGER_JS);
- source->SetDefaultResource(IDR_MD_DOWNLOADS_HTML);
+ source->AddResourcePath("downloads.css", IDR_MD_DOWNLOADS_DOWNLOADS_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.html", IDR_MD_DOWNLOADS_MANAGER_HTML);
+ source->AddResourcePath("manager.js", IDR_MD_DOWNLOADS_MANAGER_JS);
+ source->AddResourcePath("strings.html", IDR_MD_DOWNLOADS_STRINGS_HTML);
+ source->SetDefaultResource(IDR_MD_DOWNLOADS_DOWNLOADS_HTML);
} else {
- source->AddResourcePath("item_view.js", IDR_DOWNLOAD_ITEM_VIEW_JS);
- source->AddResourcePath("focus_row.js", IDR_DOWNLOAD_FOCUS_ROW_JS);
- source->AddResourcePath("manager.js", IDR_DOWNLOAD_MANAGER_JS);
- source->SetDefaultResource(IDR_DOWNLOADS_HTML);
+ source->AddResourcePath("item_view.js", IDR_DOWNLOADS_ITEM_VIEW_JS);
+ source->AddResourcePath("focus_row.js", IDR_DOWNLOADS_FOCUS_ROW_JS);
+ source->AddResourcePath("manager.js", IDR_DOWNLOADS_MANAGER_JS);
+ source->SetDefaultResource(IDR_DOWNLOADS_DOWNLOADS_HTML);
}
return source;
« no previous file with comments | « chrome/browser/resources/md_downloads/strings.html ('k') | ui/webui/resources/html/cr/ui.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698