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

Unified Diff: webkit/plugins/ppapi/url_request_info_util.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
Index: webkit/plugins/ppapi/url_request_info_util.cc
diff --git a/webkit/plugins/ppapi/url_request_info_util.cc b/webkit/plugins/ppapi/url_request_info_util.cc
index 095c9df2e16d0629f6f2dee290dc295eb808cd55..8706a3cf1515182ad7727362a4bcc53289165b40 100644
--- a/webkit/plugins/ppapi/url_request_info_util.cc
+++ b/webkit/plugins/ppapi/url_request_info_util.cc
@@ -106,7 +106,7 @@ bool EnsureFileRefObjectsPopulated(::ppapi::URLRequestInfoData* data) {
// is the state of the request as it comes off IPC).
for (size_t i = 0; i < data->body.size(); ++i) {
URLRequestInfoData::BodyItem& item = data->body[i];
- if (item.is_file && !item.file_ref) {
+ if (item.is_file && !item.file_ref.get()) {
EnterResourceNoLock<PPB_FileRef_API> enter(
item.file_ref_host_resource.host_resource(), false);
if (!enter.succeeded())
@@ -157,7 +157,7 @@ bool CreateWebURLRequest(::ppapi::URLRequestInfoData* data,
for (size_t i = 0; i < data->body.size(); ++i) {
const URLRequestInfoData::BodyItem& item = data->body[i];
if (item.is_file) {
- if (!AppendFileRefToBody(item.file_ref,
+ if (!AppendFileRefToBody(item.file_ref.get(),
item.start_offset,
item.number_of_bytes,
item.expected_last_modified_time,
« no previous file with comments | « webkit/plugins/ppapi/ppb_var_deprecated_impl.cc ('k') | webkit/renderer/compositor_bindings/web_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698