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

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

Issue 1323993002: Remove migrateNetworkPredictionPreferences(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove PREF_NETWORK_PREDICTIONS. Created 5 years, 3 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/privacy/BandwidthType.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/BandwidthType.java b/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/BandwidthType.java
deleted file mode 100644
index ef6eb195c02d43bb412bd70fe2c62e136ae3f0f3..0000000000000000000000000000000000000000
--- a/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/BandwidthType.java
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-package org.chromium.chrome.browser.preferences.privacy;
-
-/**
- * Bandwidth options available based on network.
- */
-public enum BandwidthType {
-
- // Still using "prerender" in the strings for historical reasons: we don't want to break
- // existing users' settings.
- NEVER_PRERENDER ("never_prefetch"),
- PRERENDER_ON_WIFI ("prefetch_on_wifi"),
- ALWAYS_PRERENDER ("always_prefetch");
-
- public static final BandwidthType DEFAULT = PRERENDER_ON_WIFI;
-
- private final String mTitle;
-
- BandwidthType(String title) {
- mTitle = title;
- }
-
- /**
- * Returns the title of the bandwidthType.
- * @return title
- */
- public String title() {
- return mTitle;
- }
-
- /**
- * Get the BandwidthType from the title.
- * @param title
- * @return BandwidthType
- */
- public static BandwidthType getBandwidthFromTitle(String title) {
- for (BandwidthType b : BandwidthType.values()) {
- if (b.mTitle.equals(title)) return b;
- }
- assert false;
- return DEFAULT;
- }
-}

Powered by Google App Engine
This is Rietveld 408576698