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

Unified Diff: sync/protocol/proto_value_conversions.cc

Issue 1545553003: Switch to standard integer types in sync/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « sync/protocol/proto_enum_conversions.cc ('k') | sync/sessions/data_type_tracker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/protocol/proto_value_conversions.cc
diff --git a/sync/protocol/proto_value_conversions.cc b/sync/protocol/proto_value_conversions.cc
index ddafb9cdf81bc8386b62b673efd7dade7f250c0b..4fee4ee6d0453abeaaa0aa10409452c4508bbd5e 100644
--- a/sync/protocol/proto_value_conversions.cc
+++ b/sync/protocol/proto_value_conversions.cc
@@ -6,11 +6,12 @@
#include "sync/protocol/proto_value_conversions.h"
+#include <stdint.h>
+
#include <algorithm>
#include <string>
#include "base/base64.h"
-#include "base/basictypes.h"
#include "base/i18n/time_formatting.h"
#include "base/logging.h"
#include "base/strings/string_number_conversions.h"
@@ -50,7 +51,7 @@ namespace {
// Basic Type -> Value functions.
-scoped_ptr<base::StringValue> MakeInt64Value(int64 x) {
+scoped_ptr<base::StringValue> MakeInt64Value(int64_t x) {
return make_scoped_ptr(new base::StringValue(base::Int64ToString(x)));
}
@@ -79,7 +80,7 @@ scoped_ptr<base::ListValue> MakeRepeatedValue(const F& fields,
return list;
}
-base::string16 TimestampToString(int64 tm) {
+base::string16 TimestampToString(int64_t tm) {
return base::TimeFormatShortDateAndTime(syncer::ProtoTimeToTime(tm));
}
« no previous file with comments | « sync/protocol/proto_enum_conversions.cc ('k') | sync/sessions/data_type_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698