Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(195)

Side by Side Diff: extensions/browser/updater/update_client_config.cc

Issue 1362043005: Add extensions code to use common updater in components/update_client/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merged latest origin/master Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW
« no previous file with comments | « extensions/browser/updater/update_client_config.h ('k') | extensions/browser/updater/update_data_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698