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

Unified Diff: components/drive/resource_entry_conversion.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/drive/local_file_reader_unittest.cc ('k') | components/drive/resource_metadata.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/drive/resource_entry_conversion.cc
diff --git a/components/drive/resource_entry_conversion.cc b/components/drive/resource_entry_conversion.cc
index a4fa83d613c8e52075782126f4f2031664a956cb..608a2fe97300bcab46c2e310f01afd94ba53eabe 100644
--- a/components/drive/resource_entry_conversion.cc
+++ b/components/drive/resource_entry_conversion.cc
@@ -4,6 +4,8 @@
#include "components/drive/resource_entry_conversion.h"
+#include <stdint.h>
+
#include <string>
#include "base/logging.h"
@@ -107,15 +109,15 @@ bool ConvertFileResourceToResourceEntry(
if (!input.alternate_link().is_empty())
file_specific_info->set_alternate_url(input.alternate_link().spec());
- const int64 image_width = input.image_media_metadata().width();
+ const int64_t image_width = input.image_media_metadata().width();
if (image_width != -1)
file_specific_info->set_image_width(image_width);
- const int64 image_height = input.image_media_metadata().height();
+ const int64_t image_height = input.image_media_metadata().height();
if (image_height != -1)
file_specific_info->set_image_height(image_height);
- const int64 image_rotation = input.image_media_metadata().rotation();
+ const int64_t image_rotation = input.image_media_metadata().rotation();
if (image_rotation != -1)
file_specific_info->set_image_rotation(image_rotation);
}
« no previous file with comments | « components/drive/local_file_reader_unittest.cc ('k') | components/drive/resource_metadata.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698