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

Unified Diff: components/translate/core/browser/translate_manager.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/metrics/proto/translate_event.proto ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/translate/core/browser/translate_manager.cc
diff --git a/components/translate/core/browser/translate_manager.cc b/components/translate/core/browser/translate_manager.cc
index 33d3c514a5d011646e21b4c5aedfbff7679a21f6..924808c3541397fa628ccb3703df2f2cd8d6ef16 100644
--- a/components/translate/core/browser/translate_manager.cc
+++ b/components/translate/core/browser/translate_manager.cc
@@ -583,6 +583,7 @@ void TranslateManager::InitTranslateEvent(const std::string& src_lang,
translate_event_->Clear();
translate_event_->set_source_language(src_lang);
translate_event_->set_target_language(dst_lang);
+ translate_event_->set_country(prefs.GetCountry());
translate_event_->set_accept_count(
prefs.GetTranslationAcceptedCount(src_lang));
translate_event_->set_decline_count(
« no previous file with comments | « components/metrics/proto/translate_event.proto ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698