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

Unified Diff: blimp/client/core/common/android/java/src/org/chromium/blimp/core/common/PreferencesUtil.java

Issue 2624903006: Remove all blimp client code. (Closed)
Patch Set: Update buildbot configuration Created 3 years, 11 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
« no previous file with comments | « blimp/client/core/common/DEPS ('k') | blimp/client/core/compositor/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/client/core/common/android/java/src/org/chromium/blimp/core/common/PreferencesUtil.java
diff --git a/blimp/client/core/common/android/java/src/org/chromium/blimp/core/common/PreferencesUtil.java b/blimp/client/core/common/android/java/src/org/chromium/blimp/core/common/PreferencesUtil.java
deleted file mode 100644
index aadc7ad5661dcd233a6118170d92d198ec475fb4..0000000000000000000000000000000000000000
--- a/blimp/client/core/common/android/java/src/org/chromium/blimp/core/common/PreferencesUtil.java
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright 2016 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.blimp.core.common;
-
-import org.chromium.base.ContextUtils;
-
-/**
- * Blimp preferences utilities.
- */
-public class PreferencesUtil {
- /**
- * Blimp switch preference key, also the key for this PreferenceFragment.
- */
- public static final String PREF_BLIMP_SWITCH = "blimp_switch";
- /**
- * Blimp assigner URL preference key.
- */
- public static final String PREF_ASSIGNER_URL = "blimp_assigner_url";
-
- /**
- * Default assigner URL, which is the production environment assigner.
- */
- public static final String DEFAULT_ASSIGNER_URL =
- "https://blimp-pa.googleapis.com/v1/assignment";
-
- /**
- * Reads the last used assigner from shared preference.
- * @return The saved value of assigner preference, or the default development assigner URL
- * if we didn't find the shared preference.
- */
- public static String getLastUsedAssigner() {
- return ContextUtils.getAppSharedPreferences().getString(
- PREF_ASSIGNER_URL, DEFAULT_ASSIGNER_URL);
- }
-
- /**
- * @return If Blimp switch preference in the setting page is turned on.
- */
- public static boolean isBlimpEnabled() {
- return ContextUtils.getAppSharedPreferences().getBoolean(PREF_BLIMP_SWITCH, false);
- }
-}
« no previous file with comments | « blimp/client/core/common/DEPS ('k') | blimp/client/core/compositor/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698