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

Side by Side Diff: components/translate/core/common/translate_metrics.cc

Issue 1178683009: Change histogram.h includes to histogram_macros.h in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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/common/translate_metrics.h" 5 #include "components/translate/core/common/translate_metrics.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram_macros.h"
9 #include "url/url_constants.h" 9 #include "url/url_constants.h"
10 10
11 namespace translate { 11 namespace translate {
12 12
13 namespace { 13 namespace {
14 14
15 // Constant string values to indicate UMA names. All entries should have 15 // Constant string values to indicate UMA names. All entries should have
16 // a corresponding index in MetricsNameIndex and an entry in |kMetricsEntries|. 16 // a corresponding index in MetricsNameIndex and an entry in |kMetricsEntries|.
17 const char kRenderer4LanguageDetection[] = "Renderer4.LanguageDetection"; 17 const char kRenderer4LanguageDetection[] = "Renderer4.LanguageDetection";
18 const char kTranslateContentLanguage[] = "Translate.ContentLanguage"; 18 const char kTranslateContentLanguage[] = "Translate.ContentLanguage";
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 const char* GetMetricsName(MetricsNameIndex index) { 122 const char* GetMetricsName(MetricsNameIndex index) {
123 for (size_t i = 0; i < arraysize(kMetricsEntries); ++i) { 123 for (size_t i = 0; i < arraysize(kMetricsEntries); ++i) {
124 if (kMetricsEntries[i].index == index) 124 if (kMetricsEntries[i].index == index)
125 return kMetricsEntries[i].name; 125 return kMetricsEntries[i].name;
126 } 126 }
127 NOTREACHED(); 127 NOTREACHED();
128 return NULL; 128 return NULL;
129 } 129 }
130 130
131 } // namespace translate 131 } // namespace translate
OLDNEW
« no previous file with comments | « components/translate/core/browser/translate_ui_delegate.cc ('k') | components/web_cache/browser/web_cache_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698