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

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

Issue 2819813002: Translate: remove --disable-translate flag (Closed)
Patch Set: Merge branch 'master' into translate_remove_disable_flag Created 3 years, 8 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
« no previous file with comments | « no previous file | components/translate/core/browser/translate_browser_metrics_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_BROWSER_METRICS_H_ 5 #ifndef COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_BROWSER_METRICS_H_
6 #define COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_BROWSER_METRICS_H_ 6 #define COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_BROWSER_METRICS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 namespace translate { 10 namespace translate {
(...skipping 11 matching lines...) Expand all
22 UMA_MAX, 22 UMA_MAX,
23 }; 23 };
24 24
25 // When Chrome Translate is ready to translate a page, one of following reason 25 // When Chrome Translate is ready to translate a page, one of following reason
26 // decide the next browser action. 26 // decide the next browser action.
27 // Note: Don't insert any item. It will change reporting UMA value, and break 27 // Note: Don't insert any item. It will change reporting UMA value, and break
28 // the UMA dashboard page. Instead, append it at the end of enum as suggested 28 // the UMA dashboard page. Instead, append it at the end of enum as suggested
29 // below. 29 // below.
30 enum InitiationStatusType { 30 enum InitiationStatusType {
31 INITIATION_STATUS_DISABLED_BY_PREFS, 31 INITIATION_STATUS_DISABLED_BY_PREFS,
32 INITIATION_STATUS_DISABLED_BY_SWITCH, 32 DEPRECATE_INITIATION_STATUS_DISABLED_BY_SWITCH,
33 INITIATION_STATUS_DISABLED_BY_CONFIG, 33 INITIATION_STATUS_DISABLED_BY_CONFIG,
34 INITIATION_STATUS_LANGUAGE_IS_NOT_SUPPORTED, 34 INITIATION_STATUS_LANGUAGE_IS_NOT_SUPPORTED,
35 INITIATION_STATUS_URL_IS_NOT_SUPPORTED, 35 INITIATION_STATUS_URL_IS_NOT_SUPPORTED,
36 INITIATION_STATUS_SIMILAR_LANGUAGES, 36 INITIATION_STATUS_SIMILAR_LANGUAGES,
37 INITIATION_STATUS_ACCEPT_LANGUAGES, 37 INITIATION_STATUS_ACCEPT_LANGUAGES,
38 INITIATION_STATUS_AUTO_BY_CONFIG, 38 INITIATION_STATUS_AUTO_BY_CONFIG,
39 INITIATION_STATUS_AUTO_BY_LINK, 39 INITIATION_STATUS_AUTO_BY_LINK,
40 INITIATION_STATUS_SHOW_INFOBAR, 40 INITIATION_STATUS_SHOW_INFOBAR,
41 INITIATION_STATUS_MIME_TYPE_IS_NOT_SUPPORTED, 41 INITIATION_STATUS_MIME_TYPE_IS_NOT_SUPPORTED,
42 INITIATION_STATUS_DISABLED_BY_KEY, 42 INITIATION_STATUS_DISABLED_BY_KEY,
(...skipping 19 matching lines...) Expand all
62 void ReportUnsupportedLanguageAtInitiation(const std::string& language); 62 void ReportUnsupportedLanguageAtInitiation(const std::string& language);
63 63
64 // Provides UMA entry names for unit tests. 64 // Provides UMA entry names for unit tests.
65 const char* GetMetricsName(MetricsNameIndex index); 65 const char* GetMetricsName(MetricsNameIndex index);
66 66
67 } // namespace TranslateBrowserMetrics 67 } // namespace TranslateBrowserMetrics
68 68
69 } // namespace translate 69 } // namespace translate
70 70
71 #endif // COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_BROWSER_METRICS_H_ 71 #endif // COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_BROWSER_METRICS_H_
OLDNEW
« no previous file with comments | « no previous file | components/translate/core/browser/translate_browser_metrics_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698