Index: components/translate/core/browser/translate_client.h |
diff --git a/components/translate/core/browser/translate_client.h b/components/translate/core/browser/translate_client.h |
index 1225a27e852910e0c346317804eae46af17626bf..eda29a1929451e802b5cf3a69a3069008ef2dd31 100644 |
--- a/components/translate/core/browser/translate_client.h |
+++ b/components/translate/core/browser/translate_client.h |
@@ -18,7 +18,11 @@ class PrefService; |
namespace infobars { |
class InfoBar; |
-} |
+} // namespace infobars |
+ |
+namespace metrics { |
+class TranslateEventProto; |
+} // namespace metrics |
namespace translate { |
@@ -50,6 +54,12 @@ class TranslateClient { |
// Returns the resource ID of the icon to be shown for the Translate infobars. |
virtual int GetInfobarIconID() const = 0; |
+ // Record translate event. |
+ // This is for user ID keyed event logging. |
+ // This function will take metrics::TranslateEventProto and log the evnet that |
+ // we care about. |
+ virtual void RecordTranslateEvent(const metrics::TranslateEventProto&) = 0; |
+ |
#if !defined(USE_AURA) |
// Returns a translate infobar that owns |delegate|. |
virtual std::unique_ptr<infobars::InfoBar> CreateInfoBar( |