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

Unified Diff: chrome/browser/renderer_host/data_reduction_proxy_resource_throttle_android.cc

Issue 1241583009: Async Safe Browsing check, on mobile (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove logging, fixup comments Created 5 years, 5 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: chrome/browser/renderer_host/data_reduction_proxy_resource_throttle_android.cc
diff --git a/chrome/browser/renderer_host/data_reduction_proxy_resource_throttle_android.cc b/chrome/browser/renderer_host/data_reduction_proxy_resource_throttle_android.cc
index 6bda059f50c37b77e406f267a5de06c4b66e217e..a9ba6666c1277d16800135841b04c8049fc90261 100644
--- a/chrome/browser/renderer_host/data_reduction_proxy_resource_throttle_android.cc
+++ b/chrome/browser/renderer_host/data_reduction_proxy_resource_throttle_android.cc
@@ -43,10 +43,13 @@ DataReductionProxyResourceThrottleFactory::CreateResourceThrottle(
content::ResourceType resource_type,
SafeBrowsingService* service) {
#if defined(SAFE_BROWSING_DB_LOCAL) || defined(SAFE_BROWSING_DB_REMOTE)
+ // Send requests through Safe Browsing if we can't process them.
ProfileIOData* io_data = ProfileIOData::FromResourceContext(resource_context);
if (io_data->IsOffTheRecord() || !io_data->IsDataReductionProxyEnabled() ||
- request->url().SchemeIsSecure())
- return new SafeBrowsingResourceThrottle(request, resource_type, service);
+ request->url().SchemeIsSecure()) {
+ return SafeBrowsingResourceThrottleFactory::CreateWithoutFactory(
mattm 2015/07/24 23:24:11 This is kinda confusing at first glance.. maybe ha
Nathan Parker 2015/07/28 17:42:12 Done.
+ request, resource_type, service);
+ }
#endif
return new DataReductionProxyResourceThrottle(request, resource_type,
service);

Powered by Google App Engine
This is Rietveld 408576698