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