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

Unified Diff: components/bookmarks/browser/bookmark_pasteboard_helper_mac.mm

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
Index: components/bookmarks/browser/bookmark_pasteboard_helper_mac.mm
diff --git a/components/bookmarks/browser/bookmark_pasteboard_helper_mac.mm b/components/bookmarks/browser/bookmark_pasteboard_helper_mac.mm
index 7f390604a31769bfb6f4e9dde309eddadb7a903d..1aac917376f40074b6366a33517eabbdcb982b2d 100644
--- a/components/bookmarks/browser/bookmark_pasteboard_helper_mac.mm
+++ b/components/bookmarks/browser/bookmark_pasteboard_helper_mac.mm
@@ -5,6 +5,8 @@
#include "components/bookmarks/browser/bookmark_pasteboard_helper_mac.h"
#import <Cocoa/Cocoa.h>
+#include <stddef.h>
+#include <stdint.h>
#include "base/files/file_path.h"
#include "base/strings/sys_string_conversions.h"
@@ -62,7 +64,7 @@ void ConvertPlistToElements(NSArray* input,
for (NSUInteger i = 0; i < len; ++i) {
NSDictionary* pboardBookmark = [input objectAtIndex:i];
scoped_ptr<BookmarkNode> new_node(new BookmarkNode(GURL()));
- int64 node_id =
+ int64_t node_id =
[[pboardBookmark objectForKey:kChromiumBookmarkId] longLongValue];
new_node->set_id(node_id);
@@ -179,7 +181,7 @@ NSArray* GetPlistForBookmarkList(
if (element.is_url) {
NSString* title = base::SysUTF16ToNSString(element.title);
NSString* url = base::SysUTF8ToNSString(element.url.spec());
- int64 elementId = element.id();
+ int64_t elementId = element.id();
NSNumber* idNum = [NSNumber numberWithLongLong:elementId];
NSDictionary* uriDictionary = [NSDictionary dictionaryWithObjectsAndKeys:
title, @"title", nil];
@@ -194,7 +196,7 @@ NSArray* GetPlistForBookmarkList(
} else {
NSString* title = base::SysUTF16ToNSString(element.title);
NSArray* children = GetPlistForBookmarkList(element.children);
- int64 elementId = element.id();
+ int64_t elementId = element.id();
NSNumber* idNum = [NSNumber numberWithLongLong:elementId];
NSDictionary* object = [NSDictionary dictionaryWithObjectsAndKeys:
title, @"Title",
« no previous file with comments | « components/bookmarks/browser/bookmark_node_data_unittest.cc ('k') | components/bookmarks/browser/bookmark_storage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698