| Index: chromeos/network/managed_state.cc
|
| diff --git a/chromeos/network/managed_state.cc b/chromeos/network/managed_state.cc
|
| index 75fce5bed3864bb0e955df26fabc7aaf100bc027..9a6c1b2ad58a124fe8555d1efa8baaa529349db7 100644
|
| --- a/chromeos/network/managed_state.cc
|
| +++ b/chromeos/network/managed_state.cc
|
| @@ -4,6 +4,8 @@
|
|
|
| #include "chromeos/network/managed_state.h"
|
|
|
| +#include <stdint.h>
|
| +
|
| #include "base/logging.h"
|
| #include "base/values.h"
|
| #include "chromeos/network/device_state.h"
|
| @@ -125,17 +127,17 @@ bool ManagedState::GetStringValue(const std::string& key,
|
|
|
| bool ManagedState::GetUInt32Value(const std::string& key,
|
| const base::Value& value,
|
| - uint32* out_value) {
|
| + uint32_t* out_value) {
|
| // base::Value restricts the number types to BOOL, INTEGER, and DOUBLE only.
|
| - // uint32 will automatically get converted to a double, which is why we try
|
| + // uint32_t will automatically get converted to a double, which is why we try
|
| // to obtain the value as a double (see dbus/values_util.h).
|
| - uint32 new_value;
|
| + uint32_t new_value;
|
| double double_value;
|
| if (!value.GetAsDouble(&double_value) || double_value < 0) {
|
| NET_LOG_ERROR("Error parsing state value", path() + "." + key);
|
| return false;
|
| }
|
| - new_value = static_cast<uint32>(double_value);
|
| + new_value = static_cast<uint32_t>(double_value);
|
| if (*out_value == new_value)
|
| return false;
|
| *out_value = new_value;
|
|
|