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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundScheduler.java

Issue 2737093002: [Offline pages] Clean up of device conditions related code (Closed)
Patch Set: Compilation fix and small code update Created 3 years, 9 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/offlinepages/BackgroundScheduler.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundScheduler.java b/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundScheduler.java
index 5f6da127a4609a40f1cc0b83d3c076923a28b92d..66d049335c5a40409c2d976ad789ab2a59afd80c 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundScheduler.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundScheduler.java
@@ -72,25 +72,4 @@ public abstract class BackgroundScheduler {
protected Context getContext() {
return mContext;
}
-
- /**
- * Get the latest power conditions from the android APIs.
- */
- public static boolean getPowerConditions(Context context) {
- return OfflinePageUtils.getPowerConditions(context);
- }
-
- /**
- * Get the latest battery conditions from the android APIs.
- */
- public static int getBatteryConditions(Context context) {
- return OfflinePageUtils.getBatteryConditions(context);
- }
-
- /**
- * Get the latest network conditions from the android APIs.
- */
- public static int getNetworkConditions(Context context) {
- return OfflinePageUtils.getNetworkConditions(context);
- }
}

Powered by Google App Engine
This is Rietveld 408576698