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

Side by Side Diff: components/translate/core/browser/translate_browser_metrics.cc

Issue 1549993003: Switch to standard integer types in components/, part 4 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 #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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698