diff options
author | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-13 23:32:01 +0000 |
---|---|---|
committer | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-13 23:32:01 +0000 |
commit | d393a0fdb47c3416153589b5acfc6ccaae280477 (patch) | |
tree | 4fad2a87a450cac90f5c0c4594eca7737a56c3a6 /net/base/sdch_manager.cc | |
parent | 042070d932d4689d2f2e7907348ecd3b52aba3be (diff) | |
download | chromium_src-d393a0fdb47c3416153589b5acfc6ccaae280477.zip chromium_src-d393a0fdb47c3416153589b5acfc6ccaae280477.tar.gz chromium_src-d393a0fdb47c3416153589b5acfc6ccaae280477.tar.bz2 |
Ensure that IO thread is not called in last actions by SDCH shutdown
Unregister the sdch_dictionary_fetcher so that it destroys any pending
URLFetcher instances when we are nearing shutdown time. Dictionaries
are only *potentially* useful (and not needed) for future SDCH
fetches, so abandoning any pending items is safe and harmless.
b=9669
r=wtc
Review URL: http://codereview.chromium.org/113235
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16015 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/sdch_manager.cc')
-rw-r--r-- | net/base/sdch_manager.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/base/sdch_manager.cc b/net/base/sdch_manager.cc index 30995a8..05b6475 100644 --- a/net/base/sdch_manager.cc +++ b/net/base/sdch_manager.cc @@ -82,6 +82,13 @@ SdchManager::~SdchManager() { } // static +void SdchManager::Shutdown() { + if (!global_ ) + return; + global_->fetcher_.reset(NULL); +} + +// static void SdchManager::BlacklistDomain(const GURL& url) { if (!global_ ) return; |