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

Unified Diff: components/proximity_auth/cryptauth/cryptauth_enrollment_utils.h

Issue 1308393007: Add CryptAuth managers to EasyUnlockServiceRegular (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix windows compile Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: components/proximity_auth/cryptauth/cryptauth_enrollment_utils.h
diff --git a/components/proximity_auth/cryptauth/cryptauth_enrollment_utils.h b/components/proximity_auth/cryptauth/cryptauth_enrollment_utils.h
index 0bebd1a2b1123dc25cef21e7a5571627267b8795..82730a39cde3141b2dda0594c6dada9d94577bc9 100644
--- a/components/proximity_auth/cryptauth/cryptauth_enrollment_utils.h
+++ b/components/proximity_auth/cryptauth/cryptauth_enrollment_utils.h
@@ -5,6 +5,7 @@
#ifndef COMPONENTS_PROXIMITY_AUTH_CRYPT_AUTH_ENROLLMENT_UTILS_H
#define COMPONENTS_PROXIMITY_AUTH_CRYPT_AUTH_ENROLLMENT_UTILS_H
+#include <stdint.h>
#include <string>
namespace proximity_auth {
@@ -13,6 +14,10 @@ namespace proximity_auth {
std::string CalculateDeviceUserId(const std::string& device_id,
const std::string& user_id);
+// Hashes |string| to an int64 value. These int64 hashes are used to fill the
+// GcmDeviceInfo proto to upload to CryptAuth.
+int64_t HashStringToInt64(const std::string& string);
+
} // namespace proximity_auth
#endif // COMPONENTS_PROXIMITY_AUTH_CRYPT_AUTH_ENROLLMENT_UTILS_H

Powered by Google App Engine
This is Rietveld 408576698