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

Unified Diff: chrome/utility/media_galleries/itunes_library_parser.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/media_galleries/itunes_library_parser.cc
diff --git a/chrome/utility/media_galleries/itunes_library_parser.cc b/chrome/utility/media_galleries/itunes_library_parser.cc
index bf23e6be51d03e9a77c8174631cbbfe185fb4f23..6eaa60fd8aca29ce741359cbcca0aae6a64b367c 100644
--- a/chrome/utility/media_galleries/itunes_library_parser.cc
+++ b/chrome/utility/media_galleries/itunes_library_parser.cc
@@ -4,12 +4,15 @@
#include "chrome/utility/media_galleries/itunes_library_parser.h"
+#include <stdint.h>
+
#include <string>
#include "base/logging.h"
#include "base/strings/string16.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/utf_string_conversions.h"
+#include "build/build_config.h"
#include "chrome/utility/media_galleries/iapps_xml_utils.h"
#include "third_party/libxml/chromium/libxml_utils.h"
#include "url/gurl.h"
@@ -21,7 +24,7 @@ namespace itunes {
namespace {
struct TrackInfo {
- uint64 id;
+ uint64_t id;
base::FilePath location;
std::string artist;
std::string album;
@@ -135,7 +138,7 @@ bool ITunesLibraryParser::Parse(const std::string& library_xml) {
std::string key; // Should match track id below.
if (!reader.ReadElementContent(&key))
return track_found;
- uint64 id;
+ uint64_t id;
bool id_valid = base::StringToUint64(key, &id);
if (!reader.SkipToElement())
return track_found;

Powered by Google App Engine
This is Rietveld 408576698