Index: net/url_request/url_request_job.cc |
diff --git a/net/url_request/url_request_job.cc b/net/url_request/url_request_job.cc |
index 2a4d036719cd7463466dccf67b8b43bcbc5356f4..a059a006a925d6e1897120bce65946942c9fcaed 100644 |
--- a/net/url_request/url_request_job.cc |
+++ b/net/url_request/url_request_job.cc |
@@ -452,7 +452,7 @@ void URLRequestJob::NotifyHeadersComplete() { |
// check the request pointer to see if it still exists, and return |
// immediately if it has been destroyed. self_preservation ensures our |
// survival until we can get out of this method. |
- scoped_refptr<URLRequestJob> self_preservation = this; |
+ scoped_refptr<URLRequestJob> self_preservation(this); |
GURL new_location; |
int http_status_code; |
@@ -558,7 +558,7 @@ void URLRequestJob::NotifyReadComplete(int bytes_read) { |
// check the request pointer to see if it still exists, and return |
// immediately if it has been destroyed. self_preservation ensures our |
// survival until we can get out of this method. |
- scoped_refptr<URLRequestJob> self_preservation = this; |
+ scoped_refptr<URLRequestJob> self_preservation(this); |
prefilter_bytes_read_ += bytes_read; |
if (filter_.get()) { |