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

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: Addressing feedback 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..1386f006f05d7fa1d9095bdf5007751a8865decd 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,17 +22,19 @@ 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, where possible values are defined by
+ * org.chromium.net.ConnectionType.
*/
public int getNetConnectionType() {
return mNetConnectionType;

Powered by Google App Engine
This is Rietveld 408576698