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

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, 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: 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..94de42c6ddb4849460ea1beac8ba7cd03fbdf2ad 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 metrics
+
namespace translate {
class TranslateAcceptLanguages;
class TranslatePrefs;
@@ -26,7 +30,7 @@ class TranslateManager;
namespace web {
class WebState;
-}
+} // namespace web
class ChromeIOSTranslateClient
: public translate::TranslateClient,
@@ -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