Chromium Code Reviews| Index: components/offline_pages/background/device_conditions.h |
| diff --git a/components/offline_pages/background/device_conditions.h b/components/offline_pages/background/device_conditions.h |
| index e26c7d1289b0c57b9fab74b29522379ee57a11c2..e06f7f7b00b10b48e3ba4e9728b505e546936537 100644 |
| --- a/components/offline_pages/background/device_conditions.h |
| +++ b/components/offline_pages/background/device_conditions.h |
| @@ -20,6 +20,15 @@ class DeviceConditions { |
| battery_percentage_(battery_percentage), |
| net_connection_type_(net_connection_type) {} |
| + DeviceConditions() |
|
dougarnett
2016/07/18 21:45:44
why would we want default ctor to have weakest set
Pete Williamson
2016/07/18 22:52:09
Ideally, the default ctor is only used when constr
dougarnett
2016/07/19 00:20:44
Indeed, since it is public it was a concern of def
Pete Williamson
2016/07/19 19:48:08
Changed to power on, 75% battery, and unmetered ne
|
| + : power_connected_(false), battery_percentage_(0), |
| + net_connection_type_(net::NetworkChangeNotifier::CONNECTION_NONE) {} |
| + |
| + DeviceConditions(const DeviceConditions& other) |
| + : power_connected_(other.power_connected_), |
| + battery_percentage_(other.battery_percentage_), |
| + net_connection_type_(other.net_connection_type_) {} |
| + |
| // Returns whether power is connected. |
| bool IsPowerConnected() const { return power_connected_; } |