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

Unified Diff: chrome/browser/metrics/variations/generate_resources_map.py

Issue 370463003: Add support for variations controlled overriding UI strings to the variations service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/metrics/variations/generated_resources_map.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/metrics/variations/generate_resources_map.py
diff --git a/chrome/browser/metrics/variations/generate_resources_map.py b/chrome/browser/metrics/variations/generate_resources_map.py
index 748596975676ad37afdb1264eab96fc47d64fd58..6cf535b857883f1fe51edcaf1b393e2374eaa2cb 100755
--- a/chrome/browser/metrics/variations/generate_resources_map.py
+++ b/chrome/browser/metrics/variations/generate_resources_map.py
@@ -156,11 +156,13 @@ def _GenerateFileContent(resources_content):
"#include "
"\"chrome/browser/metrics/variations/generated_resources_map.h\"\n\n"
"namespace chrome_variations {\n\n"
+ "const size_t kNumResources = %i;\n\n"
"%s"
"\n"
"%s"
"\n"
- "} // namespace chrome_variations\n") % (hashes_array, indices_array)
+ "} // namespace chrome_variations\n") % (
+ len(hashed_tuples), hashes_array, indices_array)
def main(resources_file, map_file):
« no previous file with comments | « no previous file | chrome/browser/metrics/variations/generated_resources_map.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698