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

Unified Diff: ios/chrome/browser/translate/chrome_ios_translate_client.h

Issue 2913593002: Implementation of translation event logging. (Closed)
Patch Set: fix Created 3 years, 7 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: ios/chrome/browser/translate/chrome_ios_translate_client.h
diff --git a/ios/chrome/browser/translate/chrome_ios_translate_client.h b/ios/chrome/browser/translate/chrome_ios_translate_client.h
index da7d42081599054064fe415294f078c807e01f7c..b7b6400bffccc35f18dd86d2df75531920e7544b 100644
--- a/ios/chrome/browser/translate/chrome_ios_translate_client.h
+++ b/ios/chrome/browser/translate/chrome_ios_translate_client.h
@@ -18,6 +18,10 @@
class PrefService;
+namespace metrics {
+class TranslateEventProto;
+}
+
namespace translate {
class TranslateAcceptLanguages;
class TranslatePrefs;
@@ -48,6 +52,7 @@ class ChromeIOSTranslateClient
std::unique_ptr<translate::TranslatePrefs> GetTranslatePrefs() override;
translate::TranslateAcceptLanguages* GetTranslateAcceptLanguages() override;
int GetInfobarIconID() const override;
+ void RecordTranslateEvent(const metrics::TranslateEventProto&) override;
std::unique_ptr<infobars::InfoBar> CreateInfoBar(
std::unique_ptr<translate::TranslateInfoBarDelegate> delegate)
const override;

Powered by Google App Engine
This is Rietveld 408576698