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

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

Issue 1409933012: MD Downloads: re-jigger the order of i18n processing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: grd + c++ funkiness Created 5 years, 1 month 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/resources/md_downloads/vulcanized.html ('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/prefs/pref_service.h" 9 #include "base/prefs/pref_service.h"
10 #include "base/strings/string_piece.h" 10 #include "base/strings/string_piece.h"
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 IDR_MD_DOWNLOADS_2X_NO_DOWNLOADS_PNG); 104 IDR_MD_DOWNLOADS_2X_NO_DOWNLOADS_PNG);
105 source->AddResourcePath("action_service.html", 105 source->AddResourcePath("action_service.html",
106 IDR_MD_DOWNLOADS_ACTION_SERVICE_HTML); 106 IDR_MD_DOWNLOADS_ACTION_SERVICE_HTML);
107 source->AddResourcePath("action_service.js", 107 source->AddResourcePath("action_service.js",
108 IDR_MD_DOWNLOADS_ACTION_SERVICE_JS); 108 IDR_MD_DOWNLOADS_ACTION_SERVICE_JS);
109 source->AddResourcePath("constants.html", IDR_MD_DOWNLOADS_CONSTANTS_HTML); 109 source->AddResourcePath("constants.html", IDR_MD_DOWNLOADS_CONSTANTS_HTML);
110 source->AddResourcePath("constants.js", IDR_MD_DOWNLOADS_CONSTANTS_JS); 110 source->AddResourcePath("constants.js", IDR_MD_DOWNLOADS_CONSTANTS_JS);
111 source->AddResourcePath("crisper.js", IDR_MD_DOWNLOADS_CRISPER_JS); 111 source->AddResourcePath("crisper.js", IDR_MD_DOWNLOADS_CRISPER_JS);
112 source->AddResourcePath("dev.html", IDR_MD_DOWNLOADS_DOWNLOADS_HTML); 112 source->AddResourcePath("dev.html", IDR_MD_DOWNLOADS_DOWNLOADS_HTML);
113 source->AddResourcePath("downloads.js", IDR_MD_DOWNLOADS_DOWNLOADS_JS); 113 source->AddResourcePath("downloads.js", IDR_MD_DOWNLOADS_DOWNLOADS_JS);
114 source->AddResourcePath("i18n.html", IDR_MD_DOWNLOADS_I18N_HTML); 114 source->AddResourcePath("i18n_setup.html", IDR_MD_DOWNLOADS_I18N_SETUP_HTML);
115 source->AddResourcePath("item.css", IDR_MD_DOWNLOADS_ITEM_CSS); 115 source->AddResourcePath("item.css", IDR_MD_DOWNLOADS_ITEM_CSS);
116 source->AddResourcePath("item.html", IDR_MD_DOWNLOADS_ITEM_HTML); 116 source->AddResourcePath("item.html", IDR_MD_DOWNLOADS_ITEM_HTML);
117 source->AddResourcePath("item.js", IDR_MD_DOWNLOADS_ITEM_JS); 117 source->AddResourcePath("item.js", IDR_MD_DOWNLOADS_ITEM_JS);
118 source->AddResourcePath("manager.css", IDR_MD_DOWNLOADS_MANAGER_CSS); 118 source->AddResourcePath("manager.css", IDR_MD_DOWNLOADS_MANAGER_CSS);
119 source->AddResourcePath("manager.html", IDR_MD_DOWNLOADS_MANAGER_HTML); 119 source->AddResourcePath("manager.html", IDR_MD_DOWNLOADS_MANAGER_HTML);
120 source->AddResourcePath("manager.js", IDR_MD_DOWNLOADS_MANAGER_JS); 120 source->AddResourcePath("manager.js", IDR_MD_DOWNLOADS_MANAGER_JS);
121 source->AddResourcePath("shared_style.css", 121 source->AddResourcePath("shared_style.css",
122 IDR_MD_DOWNLOADS_SHARED_STYLE_CSS); 122 IDR_MD_DOWNLOADS_SHARED_STYLE_CSS);
123 source->AddResourcePath("toolbar.css", IDR_MD_DOWNLOADS_TOOLBAR_CSS); 123 source->AddResourcePath("toolbar.css", IDR_MD_DOWNLOADS_TOOLBAR_CSS);
124 source->AddResourcePath("toolbar.html", IDR_MD_DOWNLOADS_TOOLBAR_HTML); 124 source->AddResourcePath("toolbar.html", IDR_MD_DOWNLOADS_TOOLBAR_HTML);
(...skipping 28 matching lines...) Expand all
153 content::URLDataSource::Add(profile, theme); 153 content::URLDataSource::Add(profile, theme);
154 #endif 154 #endif
155 } 155 }
156 156
157 // static 157 // static
158 base::RefCountedMemory* MdDownloadsUI::GetFaviconResourceBytes( 158 base::RefCountedMemory* MdDownloadsUI::GetFaviconResourceBytes(
159 ui::ScaleFactor scale_factor) { 159 ui::ScaleFactor scale_factor) {
160 return ResourceBundle::GetSharedInstance(). 160 return ResourceBundle::GetSharedInstance().
161 LoadDataResourceBytesForScale(IDR_DOWNLOADS_FAVICON, scale_factor); 161 LoadDataResourceBytesForScale(IDR_DOWNLOADS_FAVICON, scale_factor);
162 } 162 }
OLDNEW
« no previous file with comments | « chrome/browser/resources/md_downloads/vulcanized.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698