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

Unified Diff: components/translate/core/common/translation_logging_helper.cc

Issue 2938133003: Split translate_event.proto AUTOMATICALLY_TRANSLATED. (Closed)
Patch Set: updates Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/translate/core/browser/translate_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/translate/core/common/translation_logging_helper.cc
diff --git a/components/translate/core/common/translation_logging_helper.cc b/components/translate/core/common/translation_logging_helper.cc
index ac6c0d2ed9b37fffd83a45036b23fecfcae3edc0..8b31b643d35e761d5f4846c3e95daaa91a59233f 100644
--- a/components/translate/core/common/translation_logging_helper.cc
+++ b/components/translate/core/common/translation_logging_helper.cc
@@ -60,8 +60,13 @@ bool ConstructTranslateEvent(const int64_t navigation_id,
case TranslateEventProto::USER_REVERT:
translation->set_interaction(sync_pb::Translation::TRANSLATION_REVERTED);
break;
- case TranslateEventProto::AUTOMATICALLY_TRANSLATED:
- translation->set_interaction(sync_pb::Translation::AUTOMATIC_TRANSLATION);
+ case TranslateEventProto::AUTO_TRANSLATION_BY_PREF:
+ translation->set_interaction(
+ sync_pb::Translation::AUTO_TRANSLATION_BY_PREF);
+ break;
+ case TranslateEventProto::AUTO_TRANSLATION_BY_LINK:
+ translation->set_interaction(
+ sync_pb::Translation::AUTO_TRANSLATION_BY_LINK);
break;
default: // We don't care about other events.
return false;
« no previous file with comments | « components/translate/core/browser/translate_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698