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

Side by Side Diff: chrome/browser/component_updater/test/test_configurator.cc

Issue 385013002: Componentize component_updater: Replace content::BrowserThread usage with task runners (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove extraneous includes Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <string> 5 #include <string>
6 6
7 #include "base/run_loop.h" 7 #include "base/run_loop.h"
8 #include "base/version.h" 8 #include "base/version.h"
9 #include "chrome/browser/component_updater/test/test_configurator.h" 9 #include "chrome/browser/component_updater/test/test_configurator.h"
10 #include "content/public/browser/browser_thread.h" 10 #include "content/public/browser/browser_thread.h"
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 } 123 }
124 124
125 void TestConfigurator::SetQuitClosure(const base::Closure& quit_closure) { 125 void TestConfigurator::SetQuitClosure(const base::Closure& quit_closure) {
126 quit_closure_ = quit_closure; 126 quit_closure_ = quit_closure;
127 } 127 }
128 128
129 void TestConfigurator::SetInitialDelay(int seconds) { 129 void TestConfigurator::SetInitialDelay(int seconds) {
130 initial_time_ = seconds; 130 initial_time_ = seconds;
131 } 131 }
132 132
133 scoped_refptr<base::SequencedTaskRunner>
134 TestConfigurator::GetSequencedTaskRunner() const {
135 return content::BrowserThread::GetBlockingPool()
136 ->GetSequencedTaskRunnerWithShutdownBehavior(
137 content::BrowserThread::GetBlockingPool()->GetSequenceToken(),
138 base::SequencedWorkerPool::SKIP_ON_SHUTDOWN);
139 }
140
141 scoped_refptr<base::SingleThreadTaskRunner>
142 TestConfigurator::GetSingleThreadTaskRunner() const {
143 return content::BrowserThread::GetMessageLoopProxyForThread(
144 content::BrowserThread::FILE);
145 }
146
133 } // namespace component_updater 147 } // namespace component_updater
OLDNEW
« no previous file with comments | « chrome/browser/component_updater/test/test_configurator.h ('k') | chrome/browser/component_updater/update_checker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698