Index: chrome/android/java/src/org/chromium/chrome/browser/preferences/ChromePreferenceManager.java |
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/preferences/ChromePreferenceManager.java b/chrome/android/java/src/org/chromium/chrome/browser/preferences/ChromePreferenceManager.java |
index f6e266c1e1fbd0c8c62e34d98aa4d055fa6f44c7..77460a8c445ee2a2562757ce9313c11c05fca26b 100644 |
--- a/chrome/android/java/src/org/chromium/chrome/browser/preferences/ChromePreferenceManager.java |
+++ b/chrome/android/java/src/org/chromium/chrome/browser/preferences/ChromePreferenceManager.java |
@@ -29,6 +29,8 @@ public class ChromePreferenceManager { |
private static final String CONTEXTUAL_SEARCH_TAP_TRIGGERED_PROMO_COUNT = |
"contextual_search_tap_triggered_promo_count"; |
private static final String CONTEXTUAL_SEARCH_TAP_COUNT = "contextual_search_tap_count"; |
+ private static final String CONTEXTUAL_SEARCH_LAST_ANIMATION_ON_TAP_TIME = |
+ "contextual_search_last_animation_on_tap_time"; |
private static final String ENABLE_CUSTOM_TABS = "enable_custom_tabs"; |
private static final int SIGNIN_PROMO_CYCLE_IN_DAYS = 120; |
@@ -230,6 +232,23 @@ public class ChromePreferenceManager { |
} |
/** |
+ * @return The last time the search provider icon was animated on tap. |
+ */ |
+ public long getContextualSearchLastAnimationOnTapTime() { |
newt (away)
2015/09/14 19:59:29
This name is very precise, but something of a mout
Theresa
2015/09/25 00:58:13
Done.
|
+ return mSharedPreferences.getLong(CONTEXTUAL_SEARCH_LAST_ANIMATION_ON_TAP_TIME, 0); |
+ } |
+ |
+ /** |
+ * Sets the last time the search provider icon was animated on tap. |
+ * @param time The last time the search provider icon was animated on tap. |
+ */ |
+ public void setContextualSearchLastAnimationOnTapTime(long time) { |
+ SharedPreferences.Editor ed = mSharedPreferences.edit(); |
+ ed.putLong(CONTEXTUAL_SEARCH_LAST_ANIMATION_ON_TAP_TIME, time); |
+ ed.apply(); |
+ } |
+ |
+ /** |
* @return Number of times the promo was triggered to peek by a tap gesture, or a negative value |
* if in the disabled state. |
*/ |