OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "extensions/browser/updater/update_client_config.h" |
| 6 |
| 7 #include "content/public/browser/browser_thread.h" |
| 8 |
| 9 namespace extensions { |
| 10 |
| 11 UpdateClientConfig::UpdateClientConfig() {} |
| 12 |
| 13 scoped_refptr<base::SequencedTaskRunner> |
| 14 UpdateClientConfig::GetSequencedTaskRunner() const { |
| 15 return content::BrowserThread::GetBlockingPool() |
| 16 ->GetSequencedTaskRunnerWithShutdownBehavior( |
| 17 content::BrowserThread::GetBlockingPool()->GetSequenceToken(), |
| 18 base::SequencedWorkerPool::SKIP_ON_SHUTDOWN); |
| 19 } |
| 20 |
| 21 scoped_refptr<base::SingleThreadTaskRunner> |
| 22 UpdateClientConfig::GetSingleThreadTaskRunner() const { |
| 23 return content::BrowserThread::GetMessageLoopProxyForThread( |
| 24 content::BrowserThread::FILE); |
| 25 } |
| 26 |
| 27 UpdateClientConfig::~UpdateClientConfig() {} |
| 28 |
| 29 } // namespace extensions |
OLD | NEW |