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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/history/HistoryManagerUtils.java

Issue 2580023002: [Android History] Add a chrome://flags for the Android native history UI (Closed)
Patch Set: Rebase Created 4 years 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
« no previous file with comments | « no previous file | chrome/app/generated_resources.grd » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/history/HistoryManagerUtils.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/history/HistoryManagerUtils.java b/chrome/android/java/src/org/chromium/chrome/browser/history/HistoryManagerUtils.java
index 2e61b311a65eb855f504e59668367a9cc8f6799c..8ffecbf70d3189e20376486dcf0e4a3581b10442 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/history/HistoryManagerUtils.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/history/HistoryManagerUtils.java
@@ -7,14 +7,12 @@ package org.chromium.chrome.browser.history;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
-import android.text.TextUtils;
-import org.chromium.base.CommandLine;
import org.chromium.base.ContextUtils;
+import org.chromium.chrome.browser.ChromeFeatureList;
import org.chromium.chrome.browser.IntentHandler;
import org.chromium.chrome.browser.UrlConstants;
import org.chromium.chrome.browser.tab.Tab;
-import org.chromium.components.variations.VariationsAssociatedData;
import org.chromium.content_public.browser.LoadUrlParams;
import org.chromium.ui.base.DeviceFormFactor;
@@ -22,8 +20,6 @@ import org.chromium.ui.base.DeviceFormFactor;
* Utility methods for the browsing history manager.
*/
public class HistoryManagerUtils {
- private static final String FIELD_TRIAL_NAME = "AndroidHistoryManager";
- private static final String ENABLE_HISTORY_SWTICH = "enable_android_history_manager";
private static final Object NATIVE_HISTORY_ENABLED_LOCK = new Object();
private static Boolean sNativeHistoryEnabled;
@@ -33,13 +29,7 @@ public class HistoryManagerUtils {
public static boolean isAndroidHistoryManagerEnabled() {
synchronized (NATIVE_HISTORY_ENABLED_LOCK) {
if (sNativeHistoryEnabled == null) {
- if (CommandLine.getInstance().hasSwitch(ENABLE_HISTORY_SWTICH)) {
- sNativeHistoryEnabled = true;
- } else {
- sNativeHistoryEnabled = TextUtils.equals("true",
- VariationsAssociatedData.getVariationParamValue(FIELD_TRIAL_NAME,
- ENABLE_HISTORY_SWTICH));
- }
+ sNativeHistoryEnabled = ChromeFeatureList.isEnabled("AndroidHistoryManager");
}
}
« no previous file with comments | « no previous file | chrome/app/generated_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698