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

Unified Diff: components/safe_browsing_db/remote_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
Index: components/safe_browsing_db/remote_database_manager.cc
diff --git a/components/safe_browsing_db/remote_database_manager.cc b/components/safe_browsing_db/remote_database_manager.cc
index 6b78c53d191a276054ae3945a47af14324441468..f67f6c1026499f4b75f90d10cb35fb4a8612440e 100644
--- a/components/safe_browsing_db/remote_database_manager.cc
+++ b/components/safe_browsing_db/remote_database_manager.cc
@@ -173,8 +173,8 @@ bool RemoteSafeBrowsingDatabaseManager::CanCheckResourceType(
}
bool RemoteSafeBrowsingDatabaseManager::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 RemoteSafeBrowsingDatabaseManager::ChecksAreAlwaysAsync() const {
« no previous file with comments | « chrome/browser/safe_browsing/local_database_manager.cc ('k') | components/safe_browsing_db/v4_local_database_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698