diff options
-rw-r--r-- | net/url_request/sdch_dictionary_fetcher.cc | 4 | ||||
-rw-r--r-- | net/url_request/sdch_dictionary_fetcher.h | 3 |
2 files changed, 1 insertions, 6 deletions
diff --git a/net/url_request/sdch_dictionary_fetcher.cc b/net/url_request/sdch_dictionary_fetcher.cc index bdc2b96..8408fcf 100644 --- a/net/url_request/sdch_dictionary_fetcher.cc +++ b/net/url_request/sdch_dictionary_fetcher.cc @@ -114,8 +114,7 @@ SdchDictionaryFetcher::SdchDictionaryFetcher(URLRequestContext* context) : next_state_(STATE_NONE), in_loop_(false), fetch_queue_(new UniqueFetchQueue()), - context_(context), - weak_factory_(this) { + context_(context) { DCHECK(CalledOnValidThread()); DCHECK(context); } @@ -142,7 +141,6 @@ void SdchDictionaryFetcher::Cancel() { next_state_ = STATE_NONE; fetch_queue_->Clear(); - weak_factory_.InvalidateWeakPtrs(); } void SdchDictionaryFetcher::OnResponseStarted(URLRequest* request) { diff --git a/net/url_request/sdch_dictionary_fetcher.h b/net/url_request/sdch_dictionary_fetcher.h index 4fa3473..31a58e1 100644 --- a/net/url_request/sdch_dictionary_fetcher.h +++ b/net/url_request/sdch_dictionary_fetcher.h @@ -16,7 +16,6 @@ #include "base/macros.h" #include "base/memory/ref_counted.h" #include "base/memory/scoped_ptr.h" -#include "base/memory/weak_ptr.h" #include "base/threading/non_thread_safe.h" #include "net/base/sdch_manager.h" #include "net/url_request/url_fetcher_delegate.h" @@ -114,8 +113,6 @@ class NET_EXPORT SdchDictionaryFetcher : public URLRequest::Delegate, // use while fetching. URLRequestContext* const context_; - base::WeakPtrFactory<SdchDictionaryFetcher> weak_factory_; - DISALLOW_COPY_AND_ASSIGN(SdchDictionaryFetcher); }; |