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

Unified Diff: chrome/browser/android/webapk/webapk_icon_hasher.cc

Issue 2477173002: Make WebAPK server use Murmur2 Hash version compatible with WebAPK server (Closed)
Patch Set: Merge branch 'master' into murmur2 Created 4 years, 1 month 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: chrome/browser/android/webapk/webapk_icon_hasher.cc
diff --git a/chrome/browser/android/webapk/webapk_icon_hasher.cc b/chrome/browser/android/webapk/webapk_icon_hasher.cc
index 24bd39ef8fb91d86c1c6a7204ccd31ccead7b58a..8004d9efa7652a9e4f9c32621b0170d680e04795 100644
--- a/chrome/browser/android/webapk/webapk_icon_hasher.cc
+++ b/chrome/browser/android/webapk/webapk_icon_hasher.cc
@@ -47,7 +47,7 @@ void WebApkIconHasher::OnURLFetchComplete(const net::URLFetcher* source) {
// browser process is a security bug.
std::string raw_image_data;
source->GetResponseAsString(&raw_image_data);
- uint64_t hash = MurmurHash64B(&raw_image_data.front(), raw_image_data.size(),
+ uint64_t hash = MurmurHash64A(&raw_image_data.front(), raw_image_data.size(),
kMurmur2HashSeed);
callback_.Run(base::Uint64ToString(hash));
}

Powered by Google App Engine
This is Rietveld 408576698