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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchHeuristic.java

Issue 2894913003: [TTS] Move Ranker logging to inference time. (Closed)
Patch Set: Rebase only. 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.chrome.browser.contextualsearch; 5 package org.chromium.chrome.browser.contextualsearch;
6 6
7 /** 7 /**
8 * A piece of conditional behavior that supports experimentation and logging. 8 * A piece of conditional behavior that supports experimentation and logging.
9 */ 9 */
10 abstract class ContextualSearchHeuristic { 10 abstract class ContextualSearchHeuristic {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 return false; 52 return false;
53 } 53 }
54 54
55 /** 55 /**
56 * Logs the heuristic to UMA through Ranker logging for the purpose of Tap S uppression. 56 * Logs the heuristic to UMA through Ranker logging for the purpose of Tap S uppression.
57 * @param logger A logger to log to. 57 * @param logger A logger to log to.
58 */ 58 */
59 protected void logRankerTapSuppression(ContextualSearchRankerLogger logger) { 59 protected void logRankerTapSuppression(ContextualSearchRankerLogger logger) {
60 // Default is to not log. 60 // Default is to not log.
61 } 61 }
62
63 /**
64 * Logs a Ranker outcome using the heuristic for the purpose of Ranker Tap S uppression.
65 * @param logger A logger to log to.
66 */
67 protected void logRankerTapSuppressionOutcome(ContextualSearchRankerLogger l ogger) {
68 // Default is to not log.
69 }
62 } 70 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698