| 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
|
| index 55b80a3eca8e1a49dc25e7014a101843c822cacc..83ab8eb9dcd2e1e35d125bca78588ef498c142a8 100644
|
| --- a/chrome/browser/metrics/variations/generated_resources_map.h
|
| +++ b/chrome/browser/metrics/variations/generated_resources_map.h
|
| @@ -14,11 +14,15 @@ namespace chrome_variations {
|
| // 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.
|
| +// 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[];
|
|
|
| @@ -26,6 +30,9 @@ extern const uint32_t kResourceHashes[];
|
| // to the order of |kResourceHashes|.
|
| extern const int kResourceIndices[];
|
|
|
| +// Gets the resource index corresponding to the given hash.
|
| +int GetResourceIndex(uint32_t hash);
|
| +
|
| } // namespace chrome_variations
|
|
|
| #endif // CHROME_BROWSER_METRICS_VARIATIONS_GENERATED_RESOURCES_MAP_H_
|
|
|