Chromium Code Reviews| Index: components/about_handler/url_request_about_job.cc |
| diff --git a/components/about_handler/url_request_about_job.cc b/components/about_handler/url_request_about_job.cc |
| index 880685a1b8d3654deaeab8070a91da22948033ab..fcefc87f195a6475152c8431d01681f3481e4d22 100644 |
| --- a/components/about_handler/url_request_about_job.cc |
| +++ b/components/about_handler/url_request_about_job.cc |
| @@ -30,6 +30,11 @@ void URLRequestAboutJob::Start() { |
| base::Bind(&URLRequestAboutJob::StartAsync, weak_factory_.GetWeakPtr())); |
| } |
| +void URLRequestAboutJob::Kill() { |
| + URLRequestJob::Kill(); |
| + weak_factory_.InvalidateWeakPtrs(); |
|
davidben
2015/10/08 16:16:36
Nit: Completely doesn't matter here, but I've seen
mmenke
2015/10/08 16:20:42
Makes sense. That also the reverse of constructio
|
| +} |
| + |
| bool URLRequestAboutJob::GetMimeType(std::string* mime_type) const { |
| *mime_type = "text/html"; |
| return true; |