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

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

Issue 2894913003: [TTS] Move Ranker logging to inference time. (Closed)
Patch Set: Fix some asserts and minor cleanup. 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 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 class QuickAnswersHeuristic extends ContextualSearchHeuristic { 10 class QuickAnswersHeuristic extends ContextualSearchHeuristic {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 @Override 51 @Override
52 protected void logResultsSeen(boolean wasSearchContentViewSeen, boolean wasA ctivatedByTap) { 52 protected void logResultsSeen(boolean wasSearchContentViewSeen, boolean wasA ctivatedByTap) {
53 if (wasActivatedByTap) { 53 if (wasActivatedByTap) {
54 ContextualSearchUma.logQuickAnswerSeen( 54 ContextualSearchUma.logQuickAnswerSeen(
55 wasSearchContentViewSeen, mIsConditionSatisfied, mDidAnswer) ; 55 wasSearchContentViewSeen, mIsConditionSatisfied, mDidAnswer) ;
56 } 56 }
57 } 57 }
58 58
59 @Override 59 @Override
60 protected void logRankerTapSuppression(ContextualSearchRankerLogger logger) { 60 protected void logRankerTapSuppression(ContextualSearchRankerLogger logger) {
61 logger.log(ContextualSearchRankerLogger.Feature.OUTCOME_WAS_QUICK_ANSWER _SEEN, mDidAnswer); 61 logger.logFeature(
62 ContextualSearchRankerLogger.Feature.OUTCOME_WAS_QUICK_ANSWER_SE EN, mDidAnswer);
62 } 63 }
63 } 64 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698