Chromium Code Reviews| Index: extensions/browser/extension_protocols.cc |
| diff --git a/extensions/browser/extension_protocols.cc b/extensions/browser/extension_protocols.cc |
| index 551064cbd784250c1073044c80fd3b3f5fb5c512..ec417a38ad539b553cca3487e3e35a0dfac7d883 100644 |
| --- a/extensions/browser/extension_protocols.cc |
| +++ b/extensions/browser/extension_protocols.cc |
| @@ -237,6 +237,16 @@ class URLRequestExtensionJob : public net::URLRequestFileJob { |
| URLRequestFileJob::SetExtraRequestHeaders(headers); |
| } |
| + void OnOpenComplete(int result) override { |
| + if (result < 0) { |
|
Devlin
2017/03/24 02:01:45
This block would benefit from some comments. :)
lazyboy
2017/03/24 18:27:47
Done.
|
| + if (verify_job_.get()) { |
| + std::string tmp; |
| + verify_job_->BytesRead(0, base::string_as_array(&tmp)); |
| + verify_job_->DoneReading(); |
| + } |
| + } |
| + } |
| + |
| void OnSeekComplete(int64_t result) override { |
| DCHECK_EQ(seek_position_, 0); |
| seek_position_ = result; |