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

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

Issue 2686203002: [Offline pages] Creating BackgroundJobScheduler, which uses JobScheduler (Closed)
Patch Set: Updating the OS version for BackgroundScheduler#getInstance Created 3 years, 10 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/DeviceConditions.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/DeviceConditions.java b/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/DeviceConditions.java
index ff0e9ba9303a0983026a2ddabbe26ef2e65e6040..4f763cc3ea67c277569bf702557fbff5edbbe335 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/DeviceConditions.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/DeviceConditions.java
@@ -22,18 +22,17 @@ public class DeviceConditions {
mNetConnectionType = netConnectionType;
}
+ /** @return Whether power is connected. */
public boolean isPowerConnected() {
return mPowerConnected;
}
+ /** @return Battery percentage. */
public int getBatteryPercentage() {
return mBatteryPercentage;
}
- /**
- * Returns the Chromium enum value for the network connection type. Connection type values are
- * defined in org.chromium.net.ConnectionType.
- */
+ /** @return Network connection type as defined by org.chroium.net.ConnectionType. */
Pete Williamson 2017/02/10 02:10:43 Comment might be slightly misleading. We actually
fgorski 2017/02/10 19:26:00 Updated.
public int getNetConnectionType() {
return mNetConnectionType;
}

Powered by Google App Engine
This is Rietveld 408576698