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

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

Issue 2697703004: Allow TranslateRanker to override decisions taken by heuristics. (Closed)
Patch Set: Make TranslateAcceptLanguages default constructor protected. Created 3 years, 8 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_ranker.h
diff --git a/components/translate/core/browser/translate_ranker.h b/components/translate/core/browser/translate_ranker.h
index 0be5f5fbbc71f65282fe21b169809af9bef2bb95..de1c0e50bd542677cf07e37a9862fb75f20e95a3 100644
--- a/components/translate/core/browser/translate_ranker.h
+++ b/components/translate/core/browser/translate_ranker.h
@@ -36,6 +36,9 @@ class TranslateRanker : public KeyedService {
// automatically enable Query.
virtual bool IsQueryEnabled() = 0;
+ // Returns true if heuristic decisions should be overriden.
+ virtual bool IsDecisionOverrideEnabled() = 0;
+
// Returns the version id for the ranker model.
virtual int GetModelVersion() const = 0;

Powered by Google App Engine
This is Rietveld 408576698