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

Unified Diff: webkit/glue/weburlloader_impl.cc

Issue 16155009: Update webkit/ 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
« no previous file with comments | « webkit/glue/websocketstreamhandle_impl.cc ('k') | webkit/plugins/npapi/plugin_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/weburlloader_impl.cc
diff --git a/webkit/glue/weburlloader_impl.cc b/webkit/glue/weburlloader_impl.cc
index fcfeb8c87f2ea5c811c6ea6568d4507209396206..1916ffced7e092d5da0d5ff6919ab3a797bdc849 100644
--- a/webkit/glue/weburlloader_impl.cc
+++ b/webkit/glue/weburlloader_impl.cc
@@ -222,7 +222,7 @@ void PopulateURLResponse(
response->setLoadTiming(timing);
}
- if (info.devtools_info) {
+ if (info.devtools_info.get()) {
WebHTTPLoadInfo load_info;
load_info.setHTTPStatusCode(info.devtools_info->http_status_code);
@@ -250,7 +250,7 @@ void PopulateURLResponse(
response->setHTTPLoadInfo(load_info);
}
- const net::HttpResponseHeaders* headers = info.headers;
+ const net::HttpResponseHeaders* headers = info.headers.get();
if (!headers)
return;
@@ -552,7 +552,7 @@ void WebURLLoaderImpl::Context::Start(
}
}
request_body->set_identifier(request.httpBody().identifier());
- bridge_->SetRequestBody(request_body);
+ bridge_->SetRequestBody(request_body.get());
}
if (sync_load_response) {
@@ -646,7 +646,7 @@ void WebURLLoaderImpl::Context::OnReceivedResponse(
DCHECK(!ftp_listing_delegate_.get());
DCHECK(!multipart_delegate_.get());
- if (info.headers && info.mime_type == "multipart/x-mixed-replace") {
+ if (info.headers.get() && info.mime_type == "multipart/x-mixed-replace") {
std::string content_type;
info.headers->EnumerateHeader(NULL, "content-type", &content_type);
« no previous file with comments | « webkit/glue/websocketstreamhandle_impl.cc ('k') | webkit/plugins/npapi/plugin_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698