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

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: actually include i18n changes 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
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 b463213234db0e5b1313d3357f384fca287aa214..218dc012947c5f12f4edd833b582bbac4217b7e4 100644
--- a/chrome/browser/ui/webui/downloads_ui.cc
+++ b/chrome/browser/ui/webui/downloads_ui.cc
@@ -93,6 +93,9 @@ content::WebUIDataSource* CreateDownloadsUIHTMLSource(Profile* profile) {
source->AddResourcePath("constants.js", IDR_DOWNLOAD_CONSTANTS_JS);
if (switches::MdDownloadsEnabled()) {
+ source->AddResourcePath("item_view.html", IDR_MD_DOWNLOAD_ITEM_VIEW_HTML);
+ source->AddResourcePath("item_view.js", IDR_MD_DOWNLOAD_ITEM_VIEW_JS);
+ source->AddResourcePath("icon_loader.js", IDR_MD_DOWNLOAD_ICON_LOADER_JS);
source->AddResourcePath("manager.js", IDR_MD_DOWNLOAD_MANAGER_JS);
source->SetDefaultResource(IDR_MD_DOWNLOADS_HTML);
} else {

Powered by Google App Engine
This is Rietveld 408576698