OLD | NEW |
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 #include "components/translate/core/browser/translate_browser_metrics.h" | 5 #include "components/translate/core/browser/translate_browser_metrics.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <string> | 9 #include <string> |
8 | 10 |
9 #include "base/basictypes.h" | 11 #include "base/macros.h" |
10 #include "base/metrics/histogram_macros.h" | 12 #include "base/metrics/histogram_macros.h" |
11 #include "base/metrics/sparse_histogram.h" | 13 #include "base/metrics/sparse_histogram.h" |
12 #include "components/language_usage_metrics/language_usage_metrics.h" | 14 #include "components/language_usage_metrics/language_usage_metrics.h" |
13 | 15 |
14 namespace translate { | 16 namespace translate { |
15 | 17 |
16 namespace { | 18 namespace { |
17 | 19 |
18 // Constant string values to indicate UMA names. All entries should have | 20 // Constant string values to indicate UMA names. All entries should have |
19 // a corresponding index in MetricsNameIndex and an entry in |kMetricsEntries|. | 21 // a corresponding index in MetricsNameIndex and an entry in |kMetricsEntries|. |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 if (kMetricsEntries[i].index == index) | 91 if (kMetricsEntries[i].index == index) |
90 return kMetricsEntries[i].name; | 92 return kMetricsEntries[i].name; |
91 } | 93 } |
92 NOTREACHED(); | 94 NOTREACHED(); |
93 return NULL; | 95 return NULL; |
94 } | 96 } |
95 | 97 |
96 } // namespace TranslateBrowserMetrics | 98 } // namespace TranslateBrowserMetrics |
97 | 99 |
98 } // namespace translate | 100 } // namespace translate |
OLD | NEW |