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

Unified Diff: content/renderer/manifest/manifest_parser.cc

Issue 1547073003: Switch to standard integer types in content/renderer/. (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 | « content/renderer/manifest/manifest_parser.h ('k') | content/renderer/manifest/manifest_parser_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/manifest/manifest_parser.cc
diff --git a/content/renderer/manifest/manifest_parser.cc b/content/renderer/manifest/manifest_parser.cc
index 417188d58af4379bb264739796b2b91628c48a4c..b43e712dfb675fc93a0cf6a0b67ab62c8bead5aa 100644
--- a/content/renderer/manifest/manifest_parser.cc
+++ b/content/renderer/manifest/manifest_parser.cc
@@ -4,6 +4,8 @@
#include "content/renderer/manifest/manifest_parser.h"
+#include <stddef.h>
+
#include "base/json/json_reader.h"
#include "base/strings/nullable_string16.h"
#include "base/strings/string_number_conversions.h"
@@ -203,9 +205,10 @@ int64_t ManifestParser::ParseColor(
return Manifest::kInvalidOrMissingColor;
}
- // We do this here because Java does not have an unsigned int32 type so colors
- // with high alpha values will be negative. Instead of doing the conversion
- // after we pass over to Java, we do it here as it is easier and clearer.
+ // We do this here because Java does not have an unsigned int32_t type so
+ // colors with high alpha values will be negative. Instead of doing the
+ // conversion after we pass over to Java, we do it here as it is easier and
+ // clearer.
int32_t signed_color = reinterpret_cast<int32_t&>(color);
return static_cast<int64_t>(signed_color);
}
« no previous file with comments | « content/renderer/manifest/manifest_parser.h ('k') | content/renderer/manifest/manifest_parser_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698