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

Unified Diff: components/bookmarks/browser/bookmark_node.cc

Issue 1546143002: Switch to standard integer types in components/, part 1 of 4. (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 | « components/bookmarks/browser/bookmark_node.h ('k') | components/bookmarks/browser/bookmark_node_data.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/bookmarks/browser/bookmark_node.cc
diff --git a/components/bookmarks/browser/bookmark_node.cc b/components/bookmarks/browser/bookmark_node.cc
index f1a7945d31ecd052c9f88f6059b2be0239d2c86a..9574cf1ea5b148383fec8e4dd786030f2e53f724 100644
--- a/components/bookmarks/browser/bookmark_node.cc
+++ b/components/bookmarks/browser/bookmark_node.cc
@@ -26,15 +26,14 @@ const base::char16 kInvalidChars[] = {
// BookmarkNode ---------------------------------------------------------------
-const int64 BookmarkNode::kInvalidSyncTransactionVersion = -1;
+const int64_t BookmarkNode::kInvalidSyncTransactionVersion = -1;
BookmarkNode::BookmarkNode(const GURL& url)
: url_(url) {
Initialize(0);
}
-BookmarkNode::BookmarkNode(int64 id, const GURL& url)
- : url_(url) {
+BookmarkNode::BookmarkNode(int64_t id, const GURL& url) : url_(url) {
Initialize(id);
}
@@ -104,7 +103,7 @@ const BookmarkNode::MetaInfoMap* BookmarkNode::GetMetaInfoMap() const {
return meta_info_map_.get();
}
-void BookmarkNode::Initialize(int64 id) {
+void BookmarkNode::Initialize(int64_t id) {
id_ = id;
type_ = url_.is_empty() ? FOLDER : URL;
date_added_ = base::Time::Now();
@@ -124,10 +123,8 @@ void BookmarkNode::InvalidateFavicon() {
// BookmarkPermanentNode -------------------------------------------------------
-BookmarkPermanentNode::BookmarkPermanentNode(int64 id)
- : BookmarkNode(id, GURL()),
- visible_(true) {
-}
+BookmarkPermanentNode::BookmarkPermanentNode(int64_t id)
+ : BookmarkNode(id, GURL()), visible_(true) {}
BookmarkPermanentNode::~BookmarkPermanentNode() {
}
« no previous file with comments | « components/bookmarks/browser/bookmark_node.h ('k') | components/bookmarks/browser/bookmark_node_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698