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

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

Issue 16290004: Update chrome/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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/chrome_resource_dispatcher_host_delegate.cc
diff --git a/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc b/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc
index e1371ac7de895a8ba26dc9aee15b8b1169352e4b..fcef97b20dd8a8fdd740f47f9460efbc7288da8f 100644
--- a/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc
+++ b/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc
@@ -284,9 +284,12 @@ void ChromeResourceDispatcherHostDelegate::DownloadStarting(
// If it's from the web, we don't trust it, so we push the throttle on.
if (is_content_initiated) {
- throttles->push_back(new DownloadResourceThrottle(
- download_request_limiter_, child_id, route_id, request_id,
- request->method()));
+ throttles->push_back(
+ new DownloadResourceThrottle(download_request_limiter_.get(),
+ child_id,
+ route_id,
+ request_id,
+ request->method()));
#if defined(OS_ANDROID)
throttles->push_back(
new chrome::InterceptDownloadResourceThrottle(
@@ -390,8 +393,11 @@ void ChromeResourceDispatcherHostDelegate::AppendStandardResourceThrottles(
if (io_data->safe_browsing_enabled()->GetValue()) {
bool is_subresource_request = resource_type != ResourceType::MAIN_FRAME;
content::ResourceThrottle* throttle =
- SafeBrowsingResourceThrottleFactory::Create(request, child_id, route_id,
- is_subresource_request, safe_browsing_);
+ SafeBrowsingResourceThrottleFactory::Create(request,
+ child_id,
+ route_id,
+ is_subresource_request,
+ safe_browsing_.get());
if (throttle)
throttles->push_back(throttle);
}

Powered by Google App Engine
This is Rietveld 408576698