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

Side by Side Diff: ppapi/tools/pepper_hash_for_uma.cc

Issue 141523010: Pepper: Log in UMA when an interface is used. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add histogram hash values. Created 6 years, 10 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 #include <stdio.h>
yzshen1 2014/02/03 23:28:56 Do we need to have the copyright header?
2 #include <string.h>
3
4 #include "base/hash.h"
5 #include "base/macros.h"
6
7 int main(int argc, char **argv) {
8 if (argc != 2) {
9 fprintf(stderr, "Usage: %s <interface_name>", argv[0]);
10 return 1;
11 }
12 uint32 data = base::Hash(argv[1], strlen(argv[1]));
13 int hash = bit_cast<int>(data);
14 printf("%s: %d\n", argv[1], hash);
15 return 0;
16 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698