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

Unified Diff: components/safe_browsing_db/v4_get_hash_protocol_manager.cc

Issue 2391933002: Safe Browsing: Only check origins for API checks. (Closed)
Patch Set: Created 4 years, 2 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_get_hash_protocol_manager.cc
diff --git a/components/safe_browsing_db/v4_get_hash_protocol_manager.cc b/components/safe_browsing_db/v4_get_hash_protocol_manager.cc
index 5994c4fa38d84dc2201dabf2920f0f95ebe6f18a..96bafa951e33dc27d3519a929402be7878fc841f 100644
--- a/components/safe_browsing_db/v4_get_hash_protocol_manager.cc
+++ b/components/safe_browsing_db/v4_get_hash_protocol_manager.cc
@@ -313,7 +313,7 @@ void V4GetHashProtocolManager::GetFullHashesWithApis(
DCHECK(url.SchemeIs(url::kHttpScheme) || url.SchemeIs(url::kHttpsScheme));
std::unordered_set<FullHash> full_hashes;
- V4ProtocolManagerUtil::UrlToFullHashes(url, &full_hashes);
+ V4ProtocolManagerUtil::UrlToFullHashes(url.GetOrigin(), &full_hashes);
FullHashToStoreAndHashPrefixesMap full_hash_to_store_and_hash_prefixes;
for (const FullHash& full_hash : full_hashes) {

Powered by Google App Engine
This is Rietveld 408576698