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

Unified Diff: base/ios/device_util.h

Issue 309963003: Refactors GetDeviceIdentifier() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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
« no previous file with comments | « no previous file | base/ios/device_util.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/ios/device_util.h
diff --git a/base/ios/device_util.h b/base/ios/device_util.h
index 93100da4b6c3ef37e09a525ccb56c01c23d9fb21..4e69efc39ca9d7f666501782698ee1507ec8dbcd 100644
--- a/base/ios/device_util.h
+++ b/base/ios/device_util.h
@@ -72,6 +72,12 @@ std::string GetRandomId();
// something that should be anonymous, you should probably pass NULL.
std::string GetDeviceIdentifier(const char* salt);
+// Returns a hashed version of |in_string| using |salt| (which must not
+// zero-length). Different salt values should result in differently hashed
+// strings.
+std::string GetSaltedString(const std::string& in_string,
+ const std::string& salt);
+
} // namespace device_util
} // namespace ios
« no previous file with comments | « no previous file | base/ios/device_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698