Commit 717e57db authored by twellington's avatar twellington Committed by Commit bot

[Contextual Search] Do not include tap suppression in aggregate heuristic logging

Also default 'false' for shouldAggregateLogForTapSuppression and isConditionSatisfiedForAggregateLogging

BUG=642897

Review-Url: https://codereview.chromium.org/2386413002
Cr-Commit-Position: refs/heads/master@{#422932}
parent 3c9cd35d
......@@ -225,6 +225,7 @@ public class ContextualSearchPanelMetrics {
mWasContextualCardsDataShown = false;
mWasSelectionAllCaps = false;
mDidSelectionStartWithCapital = false;
mWasAnyHeuristicSatisfiedOnPanelShow = false;
mPanelTriggerTimeNs = 0;
}
}
......
......@@ -54,6 +54,11 @@ public class BarOverlapTapSuppression extends ContextualSearchHeuristic {
}
}
@Override
protected boolean shouldAggregateLogForTapSuppression() {
return true;
}
@Override
protected boolean isConditionSatisfiedForAggregateLogging() {
return !mIsEnabled && mIsConditionSatisfied;
......
......@@ -40,7 +40,7 @@ abstract class ContextualSearchHeuristic {
* suppression.
*/
protected boolean shouldAggregateLogForTapSuppression() {
return true;
return false;
}
/**
......@@ -48,5 +48,7 @@ abstract class ContextualSearchHeuristic {
* suppression, if it were enabled through VariationsAssociatedData. If the feature is
* enabled through VariationsAssociatedData then this method should return false.
*/
protected abstract boolean isConditionSatisfiedForAggregateLogging();
protected boolean isConditionSatisfiedForAggregateLogging() {
return false;
}
}
......@@ -58,11 +58,6 @@ public class CtrSuppression extends ContextualSearchHeuristic {
return false;
}
@Override
protected boolean isConditionSatisfiedForAggregateLogging() {
return false;
}
@Override
protected void logConditionState() {
// Since the CTR for previous time periods never changes, we only need to write to the UMA
......
......@@ -46,10 +46,6 @@ public class NearTopTapSuppression extends ContextualSearchHeuristic {
}
}
@Override
protected boolean isConditionSatisfiedForAggregateLogging() {
// TODO(twellington): Define a default value to use when determining if the condition is
// satisfied for logging.
return false;
}
// TODO(twellington): Define a default value to use when determining if the condition is
// satisfied for logging.
}
......@@ -55,14 +55,4 @@ class QuickAnswersHeuristic extends ContextualSearchHeuristic {
wasSearchContentViewSeen, mIsConditionSatisfied, mDidAnswer);
}
}
@Override
protected boolean shouldAggregateLogForTapSuppression() {
return false;
}
@Override
protected boolean isConditionSatisfiedForAggregateLogging() {
return false;
}
}
......@@ -66,6 +66,11 @@ public class RecentScrollTapSuppression extends ContextualSearchHeuristic {
}
}
@Override
protected boolean shouldAggregateLogForTapSuppression() {
return true;
}
@Override
protected boolean isConditionSatisfiedForAggregateLogging() {
return !mIsEnabled && mIsConditionSatisfied;
......
......@@ -35,16 +35,6 @@ class TapFarFromPreviousSuppression extends ContextualSearchHeuristic {
return !mShouldHandleTap;
}
@Override
protected boolean shouldAggregateLogForTapSuppression() {
return false;
}
@Override
protected boolean isConditionSatisfiedForAggregateLogging() {
return false;
}
/**
* @return whether a tap at the given coordinates should be handled or not.
*/
......
......@@ -64,11 +64,6 @@ class TapSuppression extends ContextualSearchHeuristic {
}
}
@Override
protected boolean isConditionSatisfiedForAggregateLogging() {
return !mIsTapSuppressionEnabled && mIsConditionSatisfied;
}
/**
* @return Whether a first tap should be handled or not.
*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment