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

Unified Diff: components/safe_browsing_db/v4_database.cc

Issue 2349603003: V4LDBM: Get response from GetHashManager, detect severest result (Closed)
Patch Set: git pull 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_database.cc
diff --git a/components/safe_browsing_db/v4_database.cc b/components/safe_browsing_db/v4_database.cc
index a16c5e7d40e352f05ff6ce55dd5c5fd40eb03e23..2deaf725726607fd7511ed1e3d66cea4f53d0a35 100644
--- a/components/safe_browsing_db/v4_database.cc
+++ b/components/safe_browsing_db/v4_database.cc
@@ -171,6 +171,7 @@ void V4Database::GetStoresMatchingFullHash(
const FullHash& full_hash,
const std::unordered_set<UpdateListIdentifier>& stores_to_look,
StoreAndHashPrefixes* matched_store_and_hash_prefixes) {
+ DCHECK_CURRENTLY_ON(BrowserThread::IO);
matched_store_and_hash_prefixes->clear();
for (const UpdateListIdentifier& identifier : stores_to_look) {
const auto& store_pair = store_map_->find(identifier);

Powered by Google App Engine
This is Rietveld 408576698