| Index: webkit/blob/blob_url_request_job.cc
|
| diff --git a/webkit/blob/blob_url_request_job.cc b/webkit/blob/blob_url_request_job.cc
|
| index 09491e897073c12c3c1223d0fc6abb11e472ea35..fe2321e68fdd75ad1ad29ece1c05ff8ca6e61c40 100644
|
| --- a/webkit/blob/blob_url_request_job.cc
|
| +++ b/webkit/blob/blob_url_request_job.cc
|
| @@ -65,8 +65,7 @@ BlobURLRequestJob::BlobURLRequestJob(
|
| bytes_to_read_(0),
|
| error_(false),
|
| headers_set_(false),
|
| - byte_range_set_(false),
|
| - ALLOW_THIS_IN_INITIALIZER_LIST(method_factory_(this)) {
|
| + byte_range_set_(false) {
|
| DCHECK(file_thread_proxy_);
|
| }
|
|
|
| @@ -80,7 +79,8 @@ void BlobURLRequestJob::Start() {
|
| // Continue asynchronously.
|
| MessageLoop::current()->PostTask(
|
| FROM_HERE,
|
| - method_factory_.NewRunnableMethod(&BlobURLRequestJob::DidStart));
|
| + base::Bind(&BlobURLRequestJob::DidStart,
|
| + weak_factory_.GetWeakPtr()));
|
| }
|
|
|
| void BlobURLRequestJob::DidStart() {
|
| @@ -111,7 +111,6 @@ void BlobURLRequestJob::Kill() {
|
|
|
| net::URLRequestJob::Kill();
|
| weak_factory_.InvalidateWeakPtrs();
|
| - method_factory_.RevokeAll();
|
| }
|
|
|
| void BlobURLRequestJob::ResolveFile(const FilePath& file_path) {
|
|
|