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

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

Issue 2942703002: [Sync] Make children messages of UserEventSpecifics' consistent use event suffix. (Closed)
Patch Set: Rebase 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
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 8b31b643d35e761d5f4846c3e95daaa91a59233f..f0d4c1c749dc26771bfe3e05b8b4f010c361e330 100644
--- a/components/translate/core/common/translation_logging_helper.cc
+++ b/components/translate/core/common/translation_logging_helper.cc
@@ -22,7 +22,7 @@ bool ConstructTranslateEvent(const int64_t navigation_id,
// TODO(renjieliu): Revisit this field when the best way to identify
// navigations is determined.
specifics->set_navigation_id(navigation_id);
- auto* const translation = specifics->mutable_translation();
+ auto* const translation = specifics->mutable_translation_event();
translation->set_from_language_code(translate_event.source_language());
translation->set_to_language_code(translate_event.target_language());
switch (translate_event.event_type()) {
@@ -73,4 +73,4 @@ bool ConstructTranslateEvent(const int64_t navigation_id,
}
return true;
}
-} // namespace translate
+} // namespace translate

Powered by Google App Engine
This is Rietveld 408576698