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

Unified Diff: chrome/browser/android/resource_mapper.cc

Issue 1384153003: Introduce a way to define Android-only IDR values that doesn't require (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: shortcircuit pointless lookup Created 5 years, 2 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/android/resource_id.h ('k') | chrome/browser/geolocation/geolocation_infobar_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/resource_mapper.cc
diff --git a/chrome/browser/android/resource_mapper.cc b/chrome/browser/android/resource_mapper.cc
index 545caf7140bffb34ef9b2890818ad70407c9b48f..ed4e66e050dc1447b06eb665af14e401a358528e 100644
--- a/chrome/browser/android/resource_mapper.cc
+++ b/chrome/browser/android/resource_mapper.cc
@@ -8,6 +8,7 @@
#include "base/lazy_instance.h"
#include "base/logging.h"
+#include "chrome/browser/android/android_theme_resources.h"
#include "grit/components_scaled_resources.h"
#include "grit/theme_resources.h"
@@ -39,7 +40,9 @@ void ResourceMapper::ConstructMap() {
DCHECK(g_id_map.Get().empty());
int next_id = 0;
-#define DEFINE_RESOURCE_ID(c_id,java_id) g_id_map.Get()[c_id] = next_id++;
+#define LINK_RESOURCE_ID(c_id, java_id) g_id_map.Get()[c_id] = next_id++;
+#define DECLARE_RESOURCE_ID(c_id, java_id) g_id_map.Get()[c_id] = next_id++;
#include "chrome/browser/android/resource_id.h"
-#undef DEFINE_RESOURCE_ID
+#undef LINK_RESOURCE_ID
+#undef DECLARE_RESOURCE_ID
}
« no previous file with comments | « chrome/browser/android/resource_id.h ('k') | chrome/browser/geolocation/geolocation_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698