Chromium Code Reviews| 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; |
| } |