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

Unified Diff: components/safe_browsing_db/v4_store.cc

Issue 2233103002: Move full hash caching logic to v4_get_hash_protocol_manager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Bring back the histogram to check if there were any hits in the response from the server Created 4 years, 3 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/safe_browsing_db/v4_store.cc
diff --git a/components/safe_browsing_db/v4_store.cc b/components/safe_browsing_db/v4_store.cc
index 4746d608a6bbcbc79fdf3741eec1d252b9b104ca..e34cb6f47e9dbf6754ea45f1a26d2f223e6148db 100644
--- a/components/safe_browsing_db/v4_store.cc
+++ b/components/safe_browsing_db/v4_store.cc
@@ -23,13 +23,6 @@ const uint32_t kFileMagic = 0x600D71FE;
const uint32_t kFileVersion = 9;
-// The minimum expected size (in bytes) of a hash-prefix.
-const uint32_t kMinHashPrefixLength = 4;
-
-// The maximum expected size (in bytes) of a hash-prefix. This represents the
-// length of a SHA256 hash.
-const uint32_t kMaxHashPrefixLength = 32;
-
void RecordStoreReadResult(StoreReadResult result) {
UMA_HISTOGRAM_ENUMERATION("SafeBrowsing.V4StoreReadResult", result,
STORE_READ_RESULT_MAX);

Powered by Google App Engine
This is Rietveld 408576698