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

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

Issue 2890843003: Simplify TranslateRanker API. (Closed)
Patch Set: Rebase Created 3 years, 7 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 | components/translate/core/browser/mock_translate_ranker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/translate/core/browser/mock_translate_ranker.h
diff --git a/components/translate/core/browser/mock_translate_ranker.h b/components/translate/core/browser/mock_translate_ranker.h
index f2e9d446649fdc66b4ca7e9ce6a3d693842a75cb..51dae4f19db8be1d48146f9ee78c1fe91e946ddb 100644
--- a/components/translate/core/browser/mock_translate_ranker.h
+++ b/components/translate/core/browser/mock_translate_ranker.h
@@ -20,8 +20,6 @@ class TranslateEventProto;
namespace translate {
-class TranslatePrefs;
-
namespace testing {
class MockTranslateRanker : public TranslateRanker {
@@ -43,9 +41,6 @@ class MockTranslateRanker : public TranslateRanker {
// TranslateRanker Implementation:
uint32_t GetModelVersion() const override;
bool ShouldOfferTranslation(
- const TranslatePrefs& translate_prefs,
- const std::string& src_lang,
- const std::string& dst_lang,
metrics::TranslateEventProto* translate_events) override;
void FlushTranslateEvents(
std::vector<metrics::TranslateEventProto>* events) override;
« no previous file with comments | « no previous file | components/translate/core/browser/mock_translate_ranker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698