| Index: extensions/browser/extension_protocols.cc
|
| diff --git a/extensions/browser/extension_protocols.cc b/extensions/browser/extension_protocols.cc
|
| index ccd37cdfb6cafef3d4e8bd48b3db145099482c03..ef0c65a5eb69b7396123bb41f469e7e38aeef68d 100644
|
| --- a/extensions/browser/extension_protocols.cc
|
| +++ b/extensions/browser/extension_protocols.cc
|
| @@ -268,14 +268,17 @@ class URLRequestExtensionJob : public net::URLRequestFileJob {
|
| -result);
|
| if (result > 0) {
|
| bytes_read_ += result;
|
| - if (verify_job_.get()) {
|
| + if (verify_job_.get())
|
| verify_job_->BytesRead(result, buffer->data());
|
| - if (!remaining_bytes())
|
| - verify_job_->DoneReading();
|
| - }
|
| }
|
| }
|
|
|
| + void DoneReading() override {
|
| + URLRequestFileJob::DoneReading();
|
| + if (verify_job_.get())
|
| + verify_job_->DoneReading();
|
| + }
|
| +
|
| private:
|
| ~URLRequestExtensionJob() override {
|
| UMA_HISTOGRAM_COUNTS("ExtensionUrlRequest.TotalKbRead", bytes_read_ / 1024);
|
|
|