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

Unified Diff: chrome/browser/metrics/variations/generated_resources_map.h

Issue 1374773002: Componentize script to generate UI string overrides mapping. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@get-resources-index
Patch Set: Rebase and fix //components/variations:unit_tests build with gn Created 5 years, 3 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
Index: chrome/browser/metrics/variations/generated_resources_map.h
diff --git a/chrome/browser/metrics/variations/generated_resources_map.h b/chrome/browser/metrics/variations/generated_resources_map.h
deleted file mode 100644
index c4c6cd863be62d7008455402791615567f48b896..0000000000000000000000000000000000000000
--- a/chrome/browser/metrics/variations/generated_resources_map.h
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_METRICS_VARIATIONS_GENERATED_RESOURCES_MAP_H_
-#define CHROME_BROWSER_METRICS_VARIATIONS_GENERATED_RESOURCES_MAP_H_
-
-#include "base/basictypes.h"
-
-namespace chrome_variations {
-
-// This file provides a mapping from hashes of generated resource names to their
-// IDs. This mapping is achieved by having two arrays: |kResourceHashes|, a
-// sorted array of resource name hashes; and |kResourceIndices|, an array of
-// resource indices in the same order as |kResourceHashes|. So, if
-// generated_resources.h contains |#define IDS_FOO 12345|, then for some index i
-// kResourceHashes[i] = HASH("IDS_FOO") and kResourceIndices[i] = 12345. Both
-// arrays are of length |kNumResources|.
-
-// The definitions of the arrays are generated by generate_resources_map.py from
-// the content of generated_resources.h.
-
-// Length of |kResourceHashes| and |kResourceIndices|.
-extern const size_t kNumResources;
-
-// A sorted array of hashed generated resource names.
-extern const uint32_t kResourceHashes[];
-
-// An array of generated resource indices. The order of this array corresponds
-// to the order of |kResourceHashes|.
-extern const int kResourceIndices[];
-
-} // namespace chrome_variations
-
-#endif // CHROME_BROWSER_METRICS_VARIATIONS_GENERATED_RESOURCES_MAP_H_

Powered by Google App Engine
This is Rietveld 408576698