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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundOfflinerTask.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
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundScheduler.java » ('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/offlinepages/BackgroundOfflinerTask.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundOfflinerTask.java b/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundOfflinerTask.java
index 8c914b131cda44cb4a8802683019c13dfc2337e3..8bd756880df8687578b53403d73ae1ab7baf5064 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundOfflinerTask.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundOfflinerTask.java
@@ -63,7 +63,7 @@ public class BackgroundOfflinerTask {
Bundle taskExtras, Callback<Boolean> callback) {
TriggerConditions triggerConditions =
TaskExtrasPacker.unpackTriggerConditionsFromBundle(taskExtras);
- DeviceConditions currentConditions = OfflinePageUtils.getDeviceConditions(context);
+ DeviceConditions currentConditions = DeviceConditions.getCurrentConditions(context);
if (!currentConditions.isPowerConnected()
&& currentConditions.getBatteryPercentage()
< triggerConditions.getMinimumBatteryPercentage()) {
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundScheduler.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698