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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/NearTopTapSuppression.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 near the top of the content view area. 8 * Heuristic for Tap suppression near the top of the content view area.
9 * Handles logging of results seen and the condition state. 9 * Handles logging of results seen and the condition state.
10 */ 10 */
(...skipping 30 matching lines...) Expand all
41 @Override 41 @Override
42 protected void logResultsSeen(boolean wasSearchContentViewSeen, boolean wasA ctivatedByTap) { 42 protected void logResultsSeen(boolean wasSearchContentViewSeen, boolean wasA ctivatedByTap) {
43 if (wasActivatedByTap) { 43 if (wasActivatedByTap) {
44 ContextualSearchUma.logScreenTopTapLocation( 44 ContextualSearchUma.logScreenTopTapLocation(
45 wasSearchContentViewSeen, wasActivatedByTap, mYDp); 45 wasSearchContentViewSeen, wasActivatedByTap, mYDp);
46 } 46 }
47 } 47 }
48 48
49 @Override 49 @Override
50 protected void logRankerTapSuppression(ContextualSearchRankerLogger logger) { 50 protected void logRankerTapSuppression(ContextualSearchRankerLogger logger) {
51 logger.log(ContextualSearchRankerLogger.Feature.SCREEN_TOP_DPS, mYDp); 51 logger.logFeature(ContextualSearchRankerLogger.Feature.SCREEN_TOP_DPS, m YDp);
52 } 52 }
53 53
54 // TODO(twellington): Define a default value to use when determining if the condition is 54 // TODO(twellington): Define a default value to use when determining if the condition is
55 // satisfied for logging. 55 // satisfied for logging.
56 } 56 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698