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

Unified Diff: components/safe_browsing_db/v4_local_database_manager.cc

Issue 2925233002: Enable SafeBrowsing lookups for ws: and wss: URLs (Closed)
Patch Set: Accidentally removed ftp: URLs. Fixed. Created 3 years, 6 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 | « components/safe_browsing_db/remote_database_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/safe_browsing_db/v4_local_database_manager.cc
diff --git a/components/safe_browsing_db/v4_local_database_manager.cc b/components/safe_browsing_db/v4_local_database_manager.cc
index c17dbde9283d0381364d87d78d1749a3b830fa78..33d862923316c05b173cde3c42cce2b53d2b301d 100644
--- a/components/safe_browsing_db/v4_local_database_manager.cc
+++ b/components/safe_browsing_db/v4_local_database_manager.cc
@@ -200,8 +200,8 @@ bool V4LocalDatabaseManager::CanCheckResourceType(
}
bool V4LocalDatabaseManager::CanCheckUrl(const GURL& url) const {
- return url.SchemeIs(url::kHttpsScheme) || url.SchemeIs(url::kHttpScheme) ||
- url.SchemeIs(url::kFtpScheme);
+ return url.SchemeIsHTTPOrHTTPS() || url.SchemeIs(url::kFtpScheme) ||
+ url.SchemeIsWSOrWSS();
}
bool V4LocalDatabaseManager::ChecksAreAlwaysAsync() const {
« no previous file with comments | « components/safe_browsing_db/remote_database_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698