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

Unified Diff: chrome/browser/resources_util.cc

Issue 11830002: Make ui_resources IDRs accessible via chrome://theme/<IDR>. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comment. Created 7 years, 11 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 | « no previous file | 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 731e6a1e0d690e9e35ea41b9b2fdc282d960e4db..6fcfc13b14148cb4f1c45f97dd4898edeaac5b87 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/ui_resources_map.h"
namespace {
@@ -22,6 +23,8 @@ class ThemeMap {
ThemeMap() {
for (size_t i = 0; i < kThemeResourcesSize; ++i)
id_map_[kThemeResources[i].name] = kThemeResources[i].value;
+ for (size_t i = 0; i < kUiResourcesSize; ++i)
+ id_map_[kUiResources[i].name] = kUiResources[i].value;
}
int GetId(const std::string& resource_name) {
« no previous file with comments | « no previous file | chrome/browser/resources_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698