Index: chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchUma.java |
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchUma.java b/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchUma.java |
index b944ef99212887f5edb2e609ed8f6bb089131348..c0b5e1bb095bcb636d6c12bda36d8adedba085ec 100644 |
--- a/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchUma.java |
+++ b/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchUma.java |
@@ -412,6 +412,17 @@ public class ContextualSearchUma { |
* Logs the state of the Contextual Search preference. This function should be called if the |
* Contextual Search feature is enabled, and will track the different preference settings |
* (disabled, enabled or uninitialized). Calling more than once is fine. |
+ * This is deprecated; pass the number of taps remaining to logPreferenceState. |
+ */ |
+ @Deprecated |
+ public static void logPreferenceState() { |
+ logPreferenceState(PROMO_TAPS_REMAINING_INVALID); |
+ } |
+ |
+ /** |
+ * Logs the state of the Contextual Search preference. This function should be called if the |
+ * Contextual Search feature is enabled, and will track the different preference settings |
+ * (disabled, enabled or uninitialized). Calling more than once is fine. |
* @param promoTapsRemaining The number of taps remaining, or -1 if not applicable. |
*/ |
public static void logPreferenceState(int promoTapsRemaining) { |
@@ -434,6 +445,16 @@ public class ContextualSearchUma { |
} |
/** |
+ * Logs the outcome of a first run flow. |
+ * This is deprecated; call logPromoOutcome instead. |
+ */ |
+ @Deprecated |
+ public static void logFirstRunFlowOutcome() { |
+ RecordHistogram.recordEnumeratedHistogram("Search.ContextualSearchFirstRunFlowOutcome", |
+ getPreferenceValue(), PREFERENCE_HISTOGRAM_BOUNDARY); |
+ } |
+ |
+ /** |
* Logs the outcome of the promo (first run flow). |
* Logs multiple histograms; with and without the originating gesture. |
* @param wasTap Whether the gesture that originally caused the panel to show was a Tap. |