diff options
author | sorin <sorin@chromium.org> | 2015-10-26 14:05:54 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-10-26 21:07:06 +0000 |
commit | 3301253a6de4d9e3b86f540c9e9ecc55552a2b74 (patch) | |
tree | 689f300f30766db079b729a825eac860dcb29525 /extensions/browser/updater | |
parent | c0c4d3db09f2c1023a1033c96b4ef824ddb325d8 (diff) | |
download | chromium_src-3301253a6de4d9e3b86f540c9e9ecc55552a2b74.zip chromium_src-3301253a6de4d9e3b86f540c9e9ecc55552a2b74.tar.gz chromium_src-3301253a6de4d9e3b86f540c9e9ecc55552a2b74.tar.bz2 |
Use the blocking pool for BITS background downloader.
The change refactors the background downloader to move the code off the FILE thread in order to avoid the shutdown hang detector.
BUG=467897
Review URL: https://codereview.chromium.org/1424753002
Cr-Commit-Position: refs/heads/master@{#356120}
Diffstat (limited to 'extensions/browser/updater')
-rw-r--r-- | extensions/browser/updater/update_client_config.cc | 6 | ||||
-rw-r--r-- | extensions/browser/updater/update_client_config.h | 3 |
2 files changed, 0 insertions, 9 deletions
diff --git a/extensions/browser/updater/update_client_config.cc b/extensions/browser/updater/update_client_config.cc index 9f1d0d1..3e5e1b1 100644 --- a/extensions/browser/updater/update_client_config.cc +++ b/extensions/browser/updater/update_client_config.cc @@ -18,12 +18,6 @@ UpdateClientConfig::GetSequencedTaskRunner() const { base::SequencedWorkerPool::SKIP_ON_SHUTDOWN); } -scoped_refptr<base::SingleThreadTaskRunner> -UpdateClientConfig::GetSingleThreadTaskRunner() const { - return content::BrowserThread::GetMessageLoopProxyForThread( - content::BrowserThread::FILE); -} - UpdateClientConfig::~UpdateClientConfig() {} } // namespace extensions diff --git a/extensions/browser/updater/update_client_config.h b/extensions/browser/updater/update_client_config.h index 32e7811..19fed55 100644 --- a/extensions/browser/updater/update_client_config.h +++ b/extensions/browser/updater/update_client_config.h @@ -12,7 +12,6 @@ namespace base { class SequencedTaskRunner; -class SingleThreadTaskRunner; } namespace extensions { @@ -24,8 +23,6 @@ class UpdateClientConfig : public update_client::Configurator { scoped_refptr<base::SequencedTaskRunner> GetSequencedTaskRunner() const override; - scoped_refptr<base::SingleThreadTaskRunner> GetSingleThreadTaskRunner() - const override; protected: friend class base::RefCountedThreadSafe<UpdateClientConfig>; |