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

Side by Side Diff: chrome/browser/metrics/variations/generated_resources_map.h

Issue 1363243004: Allow embedders to share code to override UI strings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comment to test and class and fix typo 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_METRICS_VARIATIONS_GENERATED_RESOURCES_MAP_H_ 5 #ifndef CHROME_BROWSER_METRICS_VARIATIONS_GENERATED_RESOURCES_MAP_H_
6 #define CHROME_BROWSER_METRICS_VARIATIONS_GENERATED_RESOURCES_MAP_H_ 6 #define CHROME_BROWSER_METRICS_VARIATIONS_GENERATED_RESOURCES_MAP_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 9
10 namespace chrome_variations { 10 namespace chrome_variations {
(...skipping 12 matching lines...) Expand all
23 // Length of |kResourceHashes| and |kResourceIndices|. 23 // Length of |kResourceHashes| and |kResourceIndices|.
24 extern const size_t kNumResources; 24 extern const size_t kNumResources;
25 25
26 // A sorted array of hashed generated resource names. 26 // A sorted array of hashed generated resource names.
27 extern const uint32_t kResourceHashes[]; 27 extern const uint32_t kResourceHashes[];
28 28
29 // An array of generated resource indices. The order of this array corresponds 29 // An array of generated resource indices. The order of this array corresponds
30 // to the order of |kResourceHashes|. 30 // to the order of |kResourceHashes|.
31 extern const int kResourceIndices[]; 31 extern const int kResourceIndices[];
32 32
33 // Gets the resource index corresponding to the given hash.
34 int GetResourceIndex(uint32_t hash);
35
36 } // namespace chrome_variations 33 } // namespace chrome_variations
37 34
38 #endif // CHROME_BROWSER_METRICS_VARIATIONS_GENERATED_RESOURCES_MAP_H_ 35 #endif // CHROME_BROWSER_METRICS_VARIATIONS_GENERATED_RESOURCES_MAP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698