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