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

Unified Diff: components/compression/compression_utils.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/component_updater/pref_names.cc ('k') | components/compression/compression_utils_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/compression/compression_utils.cc
diff --git a/components/compression/compression_utils.cc b/components/compression/compression_utils.cc
index 19de730360f671424f68f01832ab29bf4d4f70c6..dfc1664fbea692d973ac17e3712f6c5cf2895804 100644
--- a/components/compression/compression_utils.cc
+++ b/components/compression/compression_utils.cc
@@ -4,9 +4,12 @@
#include "components/compression/compression_utils.h"
+#include <stddef.h>
+#include <stdint.h>
+#include <string.h>
+
#include <vector>
-#include "base/basictypes.h"
#include "base/logging.h"
#include "base/sys_byteorder.h"
#include "third_party/zlib/zlib.h"
@@ -111,9 +114,9 @@ int GzipUncompressHelper(Bytef* dest,
}
// Returns the uncompressed size from GZIP-compressed |compressed_data|.
-uint32 GetUncompressedSize(const std::string& compressed_data) {
+uint32_t GetUncompressedSize(const std::string& compressed_data) {
// The uncompressed size is stored in the last 4 bytes of |input| in LE.
- uint32 size;
+ uint32_t size;
if (compressed_data.length() < sizeof(size))
return 0;
memcpy(&size, &compressed_data[compressed_data.length() - sizeof(size)],
« no previous file with comments | « components/component_updater/pref_names.cc ('k') | components/compression/compression_utils_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698