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

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

Issue 2930433004: Send UMA recording state to TranslateRanker. (Closed)
Patch Set: Enable Logging in tests that use Flushing. 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_ranker.h
diff --git a/components/translate/core/browser/translate_ranker.h b/components/translate/core/browser/translate_ranker.h
index 9867052a25ff730b9d70245ebfcb1e7593a117aa..732fa019e1e7844415b4a5a35b088228d88872d4 100644
--- a/components/translate/core/browser/translate_ranker.h
+++ b/components/translate/core/browser/translate_ranker.h
@@ -60,6 +60,9 @@ class TranslateRanker : public KeyedService {
const GURL& url,
metrics::TranslateEventProto* translate_event) = 0;
+ // Override the default enabled/disabled state of translate event logging.
+ virtual void EnableLogging(bool enable_logging) = 0;
+
private:
DISALLOW_COPY_AND_ASSIGN(TranslateRanker);
};
« no previous file with comments | « components/translate/core/browser/mock_translate_ranker.h ('k') | components/translate/core/browser/translate_ranker_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698