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

Unified Diff: chrome/browser/resources_util.cc

Issue 6849030: Add support for multi resolution icons (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added comments Created 9 years, 8 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/content_setting_image_model.cc ('k') | chrome/browser/resources_util_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources_util.cc
diff --git a/chrome/browser/resources_util.cc b/chrome/browser/resources_util.cc
index ab2fe9dbd1e876e368b02e535b2b3880e83f373c..99a2743a8f55d1c9c3e97cda9f84719c0e1407e2 100644
--- a/chrome/browser/resources_util.cc
+++ b/chrome/browser/resources_util.cc
@@ -9,6 +9,7 @@
#include "base/hash_tables.h"
#include "base/lazy_instance.h"
#include "grit/theme_resources_map.h"
+#include "grit/theme_resources_standard_map.h"
namespace {
@@ -23,6 +24,10 @@ class ThemeMap {
for (size_t i = 0; i < kThemeResourcesSize; ++i) {
id_map_[kThemeResources[i].name] = kThemeResources[i].value;
}
+ for (size_t i = 0; i < kThemeResourcesStandardSize; ++i) {
+ id_map_[kThemeResourcesStandard[i].name] =
+ kThemeResourcesStandard[i].value;
+ }
}
int GetId(const std::string& resource_name) {
« no previous file with comments | « chrome/browser/content_setting_image_model.cc ('k') | chrome/browser/resources_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698