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

Side by Side Diff: components/metrics/proto/translate_event.proto

Issue 2629173002: Add a country field to TranslateEventProto. (Closed)
Patch Set: Log country in translate_events. Created 3 years, 11 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_manager.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 // Stores information about translate UI, translate Ranekr and user interaction. 5 // Stores information about translate UI, translate Ranekr and user interaction.
6 6
7 syntax = "proto2"; 7 syntax = "proto2";
8 8
9 option optimize_for = LITE_RUNTIME; 9 option optimize_for = LITE_RUNTIME;
10 option java_outer_classname = "TranslateEventProtos"; 10 option java_outer_classname = "TranslateEventProtos";
11 option java_package = "org.chromium.components.metrics"; 11 option java_package = "org.chromium.components.metrics";
12 12
13 package metrics; 13 package metrics;
14 14
15 // Stores information about a single interaction between a user and 15 // Stores information about a single interaction between a user and
16 // the Translate UI. Contains features used by Translate Ranker for 16 // the Translate UI. Contains features used by Translate Ranker for
17 // inference, information about the ranker model and its decision, as 17 // inference, information about the ranker model and its decision, as
18 // well as user or automated feedback from the Translate UI. 18 // well as user or automated feedback from the Translate UI.
19 // Next tag: 14 19 // Next tag: 15
20 message TranslateEventProto { 20 message TranslateEventProto {
21 // Language strings are two or three letter codes, with sometimes an extra 21 // Language strings are two or three letter codes, with sometimes an extra
22 // suffix (for e.g. chinese zh-TW or zh-CN). See 22 // suffix (for e.g. chinese zh-TW or zh-CN). See
23 // https://cs.chromium.org/chromium/src/components/translate/core/browser/tran slate_language_list.cc 23 // https://cs.chromium.org/chromium/src/components/translate/core/browser/tran slate_language_list.cc
24 // for a list of supported languages. 24 // for a list of supported languages.
25 // Source language of the translation. 25 // Source language of the translation.
26 optional string source_language = 1; 26 optional string source_language = 1;
27 // Target language of the translation. 27 // Target language of the translation.
28 optional string target_language = 2; 28 optional string target_language = 2;
29 29
30 // The country where the user is. 2-letter country code. This
31 // corresponds to the stored permanent country in VariationsService.
32 optional string country = 14;
33
30 // The following counts are extracted from TranslatePrefs. 34 // The following counts are extracted from TranslatePrefs.
31 // The number of times the user accepted a translation for the 35 // The number of times the user accepted a translation for the
32 // source language. 36 // source language.
33 optional int32 accept_count = 3; 37 optional int32 accept_count = 3;
34 // The number of times the user declined a translation for the 38 // The number of times the user declined a translation for the
35 // source language. 39 // source language.
36 optional int32 decline_count = 4; 40 optional int32 decline_count = 4;
37 // The number of times the user ignored a translation for the source 41 // The number of times the user ignored a translation for the source
38 // language. 42 // language.
39 optional int32 ignore_count = 5; 43 optional int32 ignore_count = 5;
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 // ChromeUserMetricsExtension message. 145 // ChromeUserMetricsExtension message.
142 optional int64 event_timestamp_sec = 11; 146 optional int64 event_timestamp_sec = 11;
143 147
144 // Modified source language, if the user changed it. If changed more than 148 // Modified source language, if the user changed it. If changed more than
145 // once, we only keep the last one. 149 // once, we only keep the last one.
146 optional string modified_source_language = 12; 150 optional string modified_source_language = 12;
147 // Modified target language, if the user changed it. If changed more than 151 // Modified target language, if the user changed it. If changed more than
148 // once, we only keep the last one. 152 // once, we only keep the last one.
149 optional string modified_target_language = 13; 153 optional string modified_target_language = 13;
150 } 154 }
OLDNEW
« no previous file with comments | « no previous file | components/translate/core/browser/translate_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698