| Index: webkit/plugins/ppapi/ppb_url_response_info_impl.cc
|
| diff --git a/webkit/plugins/ppapi/ppb_url_response_info_impl.cc b/webkit/plugins/ppapi/ppb_url_response_info_impl.cc
|
| index c5573fe6fbb1bd31781c3e906e7ca55b52eb572d..9be54b80d44421fc78458a06156f09fe92f99ae1 100644
|
| --- a/webkit/plugins/ppapi/ppb_url_response_info_impl.cc
|
| +++ b/webkit/plugins/ppapi/ppb_url_response_info_impl.cc
|
| @@ -74,8 +74,8 @@ bool PPB_URLResponseInfo_Impl::Initialize(const WebURLResponse& response) {
|
|
|
| WebString file_path = response.downloadFilePath();
|
| if (!file_path.isEmpty()) {
|
| - body_ = new PPB_FileRef_Impl(pp_instance(),
|
| - webkit_glue::WebStringToFilePath(file_path));
|
| + body_ = PPB_FileRef_Impl::CreateExternal(
|
| + pp_instance(), webkit_glue::WebStringToFilePath(file_path));
|
| }
|
| return true;
|
| }
|
| @@ -111,7 +111,6 @@ PP_Var PPB_URLResponseInfo_Impl::GetProperty(PP_URLResponseProperty property) {
|
| PP_Resource PPB_URLResponseInfo_Impl::GetBodyAsFileRef() {
|
| if (!body_.get())
|
| return 0;
|
| - body_->AddRef(); // AddRef for the caller.
|
| return body_->GetReference();
|
| }
|
|
|
|
|