OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |