Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3486)

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/preferences/ChromePreferenceManager.java

Issue 2057933002: [Custom Tabs] Navigate to other apps if the first url is a redirect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 3a00162859c6f169641eb0d7518fa2ff4d525ea4..09c7223c0f106f8bca593adad6b0c059e7025897 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
@@ -36,7 +36,6 @@ public class ChromePreferenceManager {
"contextual_search_peek_promo_show_count";
private static final String CONTEXTUAL_SEARCH_LAST_ANIMATION_TIME =
"contextual_search_last_animation_time";
- private static final String ENABLE_CUSTOM_TABS = "enable_custom_tabs";
private static final String HERB_FLAVOR_KEY = "herb_flavor";
private static final String APP_LINK_KEY = "applink.app_link_enabled";
private static final String CHROME_DEFAULT_BROWSER = "applink.chrome_default_browser";
@@ -126,24 +125,6 @@ public class ChromePreferenceManager {
}
/**
- * Enables custom tabs when true. This will take effect next time an activity is created.
- * @param enabled Whether custom tabs should be enabled.
- */
- public void setCustomTabsEnabled(boolean enabled) {
- SharedPreferences.Editor ed = mSharedPreferences.edit();
- ed.putBoolean(ENABLE_CUSTOM_TABS, enabled);
- ed.apply();
- }
-
- /**
- * @return Whether custom tabs is enabled. This return value is designed to be used as a kill
- * switch for the feature, so it returns true by default if the preference is not set.
- */
- public boolean getCustomTabsEnabled() {
- return mSharedPreferences.getBoolean(ENABLE_CUSTOM_TABS, true);
- }
-
- /**
* Marks whether the data reduction promotion was skipped on first
* invocation.
* @param displayed Whether the promotion was shown.

Powered by Google App Engine
This is Rietveld 408576698