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

Unified Diff: chrome/browser/ui/android/infobars/translate_compact_infobar.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
« no previous file with comments | « no previous file | chrome/browser/ui/android/infobars/translate_compact_infobar.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/android/infobars/translate_compact_infobar.h
diff --git a/chrome/browser/ui/android/infobars/translate_compact_infobar.h b/chrome/browser/ui/android/infobars/translate_compact_infobar.h
index a2c65e1340290a83ba91b6a529e41b0a89e6bd14..25d78aba5d6b26397b72dfd54343192aca5431b9 100644
--- a/chrome/browser/ui/android/infobars/translate_compact_infobar.h
+++ b/chrome/browser/ui/android/infobars/translate_compact_infobar.h
@@ -85,6 +85,10 @@ class TranslateCompactInfoBar
// If number of consecutive denied is equal to this number, infobar will
// automatically trigger "Never Translate Language".
const int kDeniedCountThreshold = 7;
+ // Maximum number of times to trigger "Always Translate" automatically.
+ const int kMaxNumberOfAutoAlways = 2;
+ // Maximum number of times to trigger "Never Translate" automatically.
+ const int kMaxNumberOfAutoNever = 2;
DISALLOW_COPY_AND_ASSIGN(TranslateCompactInfoBar);
};
« no previous file with comments | « no previous file | chrome/browser/ui/android/infobars/translate_compact_infobar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698