| Index: ppapi/native_client/tests/ppapi_simple_tests/file.cc
|
| ===================================================================
|
| --- ppapi/native_client/tests/ppapi_simple_tests/file.cc (revision 102105)
|
| +++ ppapi/native_client/tests/ppapi_simple_tests/file.cc (working copy)
|
| @@ -144,7 +144,7 @@
|
| }
|
|
|
| void OpenFile() {
|
| - file_ref_ = new pp::FileRef(response_info_->GetBodyAsFileRef());
|
| + file_ref_ = new pp::FileRef(loader_.GetResponseInfo().GetBodyAsFileRef());
|
| CHECK(!file_ref_->is_null());
|
|
|
| file_io_ = new pp::FileIO(instance_);
|
| @@ -183,10 +183,9 @@
|
| static void OpenURLCompleteCallback(void* thiz, int32_t result) {
|
| ReaderStreamAsFile* reader = static_cast<ReaderStreamAsFile*>(thiz);
|
|
|
| - reader->response_info_ =
|
| - new pp::URLResponseInfo(reader->loader_.GetResponseInfo());
|
| - CHECK(!reader->response_info_->is_null());
|
| - int32_t status_code = reader->response_info_->GetStatusCode();
|
| + pp::URLResponseInfo response_info(reader->loader_.GetResponseInfo());
|
| + CHECK(!response_info.is_null());
|
| + int32_t status_code = response_info.GetStatusCode();
|
| if (status_code != 200) {
|
| reader->Message("Error: OpenURLCompleteCallback unexpected status code");
|
| return;
|
|
|