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

Side by Side Diff: chrome/browser/ui/webui/md_downloads/md_downloads_ui.cc

Issue 2178813002: Add missing resource to non-vulcanized Downloads (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/browser_resources.grd ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/webui/md_downloads/md_downloads_ui.h" 5 #include "chrome/browser/ui/webui/md_downloads/md_downloads_ui.h"
6 6
7 #include "base/memory/ref_counted_memory.h" 7 #include "base/memory/ref_counted_memory.h"
8 #include "base/memory/singleton.h" 8 #include "base/memory/singleton.h"
9 #include "base/strings/string_piece.h" 9 #include "base/strings/string_piece.h"
10 #include "base/threading/thread.h" 10 #include "base/threading/thread.h"
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 source->SetDefaultResource(IDR_MD_DOWNLOADS_VULCANIZED_HTML); 109 source->SetDefaultResource(IDR_MD_DOWNLOADS_VULCANIZED_HTML);
110 #else 110 #else
111 source->AddResourcePath("action_service.html", 111 source->AddResourcePath("action_service.html",
112 IDR_MD_DOWNLOADS_ACTION_SERVICE_HTML); 112 IDR_MD_DOWNLOADS_ACTION_SERVICE_HTML);
113 source->AddResourcePath("action_service.js", 113 source->AddResourcePath("action_service.js",
114 IDR_MD_DOWNLOADS_ACTION_SERVICE_JS); 114 IDR_MD_DOWNLOADS_ACTION_SERVICE_JS);
115 source->AddResourcePath("constants.html", IDR_MD_DOWNLOADS_CONSTANTS_HTML); 115 source->AddResourcePath("constants.html", IDR_MD_DOWNLOADS_CONSTANTS_HTML);
116 source->AddResourcePath("constants.js", IDR_MD_DOWNLOADS_CONSTANTS_JS); 116 source->AddResourcePath("constants.js", IDR_MD_DOWNLOADS_CONSTANTS_JS);
117 source->AddResourcePath("downloads.js", IDR_MD_DOWNLOADS_DOWNLOADS_JS); 117 source->AddResourcePath("downloads.js", IDR_MD_DOWNLOADS_DOWNLOADS_JS);
118 source->AddResourcePath("i18n_setup.html", IDR_MD_DOWNLOADS_I18N_SETUP_HTML); 118 source->AddResourcePath("i18n_setup.html", IDR_MD_DOWNLOADS_I18N_SETUP_HTML);
119 source->AddResourcePath("icons.html", IDR_MD_DOWNLOADS_ICONS_HTML);
119 source->AddResourcePath("item.css", IDR_MD_DOWNLOADS_ITEM_CSS); 120 source->AddResourcePath("item.css", IDR_MD_DOWNLOADS_ITEM_CSS);
120 source->AddResourcePath("item.html", IDR_MD_DOWNLOADS_ITEM_HTML); 121 source->AddResourcePath("item.html", IDR_MD_DOWNLOADS_ITEM_HTML);
121 source->AddResourcePath("item.js", IDR_MD_DOWNLOADS_ITEM_JS); 122 source->AddResourcePath("item.js", IDR_MD_DOWNLOADS_ITEM_JS);
122 source->AddResourcePath("manager.css", IDR_MD_DOWNLOADS_MANAGER_CSS); 123 source->AddResourcePath("manager.css", IDR_MD_DOWNLOADS_MANAGER_CSS);
123 source->AddResourcePath("manager.html", IDR_MD_DOWNLOADS_MANAGER_HTML); 124 source->AddResourcePath("manager.html", IDR_MD_DOWNLOADS_MANAGER_HTML);
124 source->AddResourcePath("manager.js", IDR_MD_DOWNLOADS_MANAGER_JS); 125 source->AddResourcePath("manager.js", IDR_MD_DOWNLOADS_MANAGER_JS);
125 source->AddResourcePath("shared_style.css", 126 source->AddResourcePath("shared_style.css",
126 IDR_MD_DOWNLOADS_SHARED_STYLE_CSS); 127 IDR_MD_DOWNLOADS_SHARED_STYLE_CSS);
127 source->AddResourcePath("toolbar.css", IDR_MD_DOWNLOADS_TOOLBAR_CSS); 128 source->AddResourcePath("toolbar.css", IDR_MD_DOWNLOADS_TOOLBAR_CSS);
128 source->AddResourcePath("toolbar.html", IDR_MD_DOWNLOADS_TOOLBAR_HTML); 129 source->AddResourcePath("toolbar.html", IDR_MD_DOWNLOADS_TOOLBAR_HTML);
(...skipping 29 matching lines...) Expand all
158 content::URLDataSource::Add(profile, theme); 159 content::URLDataSource::Add(profile, theme);
159 #endif 160 #endif
160 } 161 }
161 162
162 // static 163 // static
163 base::RefCountedMemory* MdDownloadsUI::GetFaviconResourceBytes( 164 base::RefCountedMemory* MdDownloadsUI::GetFaviconResourceBytes(
164 ui::ScaleFactor scale_factor) { 165 ui::ScaleFactor scale_factor) {
165 return ResourceBundle::GetSharedInstance(). 166 return ResourceBundle::GetSharedInstance().
166 LoadDataResourceBytesForScale(IDR_DOWNLOADS_FAVICON, scale_factor); 167 LoadDataResourceBytesForScale(IDR_DOWNLOADS_FAVICON, scale_factor);
167 } 168 }
OLDNEW
« no previous file with comments | « chrome/browser/browser_resources.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698