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

Unified Diff: ppapi/tools/pepper_hash_for_uma.cc

Issue 1548813002: Switch to standard integer types in ppapi/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes 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 | « ppapi/thunk/resource_creation_api.h ('k') | ppapi/utility/completion_callback_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/tools/pepper_hash_for_uma.cc
diff --git a/ppapi/tools/pepper_hash_for_uma.cc b/ppapi/tools/pepper_hash_for_uma.cc
index 7c006a89b79a094cb07eb1d99ef1d5ce4178c2cd..588ae466e95c4371bd9a85370d80a71f9993afaa 100644
--- a/ppapi/tools/pepper_hash_for_uma.cc
+++ b/ppapi/tools/pepper_hash_for_uma.cc
@@ -16,6 +16,7 @@
// can be compared to tools/metrics/histograms/histograms.xml to determine if
// any interfaces have been left out.
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -35,9 +36,9 @@ int main(int argc, char **argv) {
argv[0]);
return 1;
}
- std::vector<std::pair<uint32, char*>> hashes;
+ std::vector<std::pair<uint32_t, char*>> hashes;
for (int i = 1; i < argc; i++) {
- uint32 data = base::Hash(argv[i], strlen(argv[i]));
+ uint32_t data = base::Hash(argv[i], strlen(argv[i]));
// Strip off the signed bit because UMA doesn't support negative values,
// but takes a signed int as input.
« no previous file with comments | « ppapi/thunk/resource_creation_api.h ('k') | ppapi/utility/completion_callback_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698