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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/RecentScrollTapSuppression.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 * Heuristic for Tap suppression after a recent scroll action. 8 * Heuristic for Tap suppression after a recent scroll action.
9 * Handles logging of results seen and activation. 9 * Handles logging of results seen and activation.
10 */ 10 */
(...skipping 28 matching lines...) Expand all
39 return mIsConditionSatisfied; 39 return mIsConditionSatisfied;
40 } 40 }
41 41
42 @Override 42 @Override
43 protected void logConditionState() { 43 protected void logConditionState() {
44 ContextualSearchUma.logRecentScrollSuppression(mIsConditionSatisfied); 44 ContextualSearchUma.logRecentScrollSuppression(mIsConditionSatisfied);
45 } 45 }
46 46
47 @Override 47 @Override
48 protected void logRankerTapSuppression(ContextualSearchRankerLogger logger) { 48 protected void logRankerTapSuppression(ContextualSearchRankerLogger logger) {
49 logger.log(ContextualSearchRankerLogger.Feature.DURATION_AFTER_SCROLL_MS , 49 logger.logFeature(ContextualSearchRankerLogger.Feature.DURATION_AFTER_SC ROLL_MS,
50 mDurationSinceRecentScrollMs); 50 mDurationSinceRecentScrollMs);
51 } 51 }
52 } 52 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698