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

Unified Diff: chrome/utility/importer/bookmark_html_reader.cc

Issue 1548153002: Switch to standard integer types in chrome/. (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: chrome/utility/importer/bookmark_html_reader.cc
diff --git a/chrome/utility/importer/bookmark_html_reader.cc b/chrome/utility/importer/bookmark_html_reader.cc
index 59048e238b19ebc100b219c08fce2866dd04e9bf..11e0750052fb18c5b898ead9f7a803a4c8046f6e 100644
--- a/chrome/utility/importer/bookmark_html_reader.cc
+++ b/chrome/utility/importer/bookmark_html_reader.cc
@@ -4,9 +4,13 @@
#include "chrome/utility/importer/bookmark_html_reader.h"
+#include <stddef.h>
+#include <stdint.h>
+
#include "base/callback.h"
#include "base/files/file_util.h"
#include "base/i18n/icu_string_conversions.h"
+#include "base/macros.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
@@ -323,7 +327,7 @@ bool ParseFolderNameFromLine(const std::string& line,
// Add date
if (GetAttribute(attribute_list, kAddDateAttribute, &value)) {
- int64 time;
+ int64_t time;
base::StringToInt64(value, &time);
// Upper bound it at 32 bits.
if (0 < time && time < (1LL << 32))
@@ -409,7 +413,7 @@ bool ParseBookmarkFromLine(const std::string& line,
// Add date
if (GetAttribute(attribute_list, kAddDateAttribute, &value)) {
- int64 time;
+ int64_t time;
base::StringToInt64(value, &time);
// Upper bound it at 32 bits.
if (0 < time && time < (1LL << 32))
« no previous file with comments | « chrome/utility/image_writer/image_writer_win.cc ('k') | chrome/utility/importer/bookmark_html_reader_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698