Index: chrome/browser/net/chrome_url_request_context.h |
diff --git a/chrome/browser/net/chrome_url_request_context.h b/chrome/browser/net/chrome_url_request_context.h |
index 86f09fc84eb5da6e0909d94dc750eda5f3cda74f..db099927979156f2f7aac8f29d10e0a1197a699a 100644 |
--- a/chrome/browser/net/chrome_url_request_context.h |
+++ b/chrome/browser/net/chrome_url_request_context.h |
@@ -41,13 +41,15 @@ class ChromeURLRequestContext : public net::URLRequestContext { |
virtual ~ChromeURLRequestContext(); |
base::WeakPtr<ChromeURLRequestContext> GetWeakPtr() { |
- return base::AsWeakPtr(this); |
+ return weak_factory_.GetWeakPtr(); |
} |
// Copies the state from |other| into this context. |
void CopyFrom(ChromeURLRequestContext* other); |
private: |
+ base::WeakPtrFactory<ChromeURLRequestContext> weak_factory_; |
+ |
// --------------------------------------------------------------------------- |
// Important: When adding any new members below, consider whether they need to |
// be added to CopyFrom. |