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

Unified Diff: chromeos/network/managed_state.cc

Issue 1540803002: Switch to standard integer types in chromeos/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more includes Created 5 years 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
« no previous file with comments | « chromeos/network/managed_state.h ('k') | chromeos/network/mock_managed_network_configuration_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « chromeos/network/managed_state.h ('k') | chromeos/network/mock_managed_network_configuration_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698