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

Unified Diff: components/sessions/core/serialized_navigation_entry.cc

Issue 1551433002: Switch to standard integer types in components/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more 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
Index: components/sessions/core/serialized_navigation_entry.cc
diff --git a/components/sessions/core/serialized_navigation_entry.cc b/components/sessions/core/serialized_navigation_entry.cc
index 746de644b20b5c6f91494dc922e193710879370f..8dfd8a284e1178a7b65995ce06ae74d5feb39580 100644
--- a/components/sessions/core/serialized_navigation_entry.cc
+++ b/components/sessions/core/serialized_navigation_entry.cc
@@ -4,6 +4,8 @@
#include "components/sessions/core/serialized_navigation_entry.h"
+#include <stddef.h>
+
#include "base/pickle.h"
#include "base/strings/utf_string_conversions.h"
#include "components/sessions/core/serialized_navigation_driver.h"
@@ -52,7 +54,7 @@ SerializedNavigationEntry SerializedNavigationEntry::FromSyncData(
navigation.virtual_url_ = GURL(sync_data.virtual_url());
navigation.title_ = base::UTF8ToUTF16(sync_data.title());
- uint32 transition = 0;
+ uint32_t transition = 0;
if (sync_data.has_page_transition()) {
switch (sync_data.page_transition()) {
case sync_pb::SyncEnums_PageTransition_LINK:
@@ -293,7 +295,7 @@ bool SerializedNavigationEntry::ReadFromPickle(base::PickleIterator* iterator) {
if (!iterator->ReadBool(&is_overriding_user_agent_))
is_overriding_user_agent_ = false;
- int64 timestamp_internal_value = 0;
+ int64_t timestamp_internal_value = 0;
if (iterator->ReadInt64(&timestamp_internal_value)) {
timestamp_ = base::Time::FromInternalValue(timestamp_internal_value);
} else {

Powered by Google App Engine
This is Rietveld 408576698