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

Unified Diff: components/translate/core/browser/translate_infobar_delegate.h

Issue 2920953002: Auto-always/never can at most triggered twice (new translate infobar) (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: components/translate/core/browser/translate_infobar_delegate.h
diff --git a/components/translate/core/browser/translate_infobar_delegate.h b/components/translate/core/browser/translate_infobar_delegate.h
index 2ded242fbf8f3e6a48af8d0d83706c534fdc9464..7c344de42c9bb78a83e94c76fdc2227d5a5ac805 100644
--- a/components/translate/core/browser/translate_infobar_delegate.h
+++ b/components/translate/core/browser/translate_infobar_delegate.h
@@ -153,6 +153,17 @@ class TranslateInfoBarDelegate : public infobars::InfoBarDelegate {
int GetTranslationAcceptedCount();
int GetTranslationDeniedCount();
+ void ResetTranslationAcceptedCount();
+ void ResetTranslationDeniedCount();
+
+#if defined(OS_ANDROID)
+ int GetTranslationAutoAlwaysCount();
+ int GetTranslationAutoNeverCount();
+
+ void IncrementTranslationAutoAlwaysCount();
+ void IncrementTranslationAutoNeverCount();
+#endif
+
// The following methods are called by the infobar that displays the status
// while translating and also the one displaying the error message.
base::string16 GetMessageInfoBarText();

Powered by Google App Engine
This is Rietveld 408576698