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

Unified Diff: chrome/browser/search_engines/template_url_service_test_util.cc

Issue 14113053: chrome: Use base::MessageLoop. (Part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/search_engines/template_url_service_test_util.cc
diff --git a/chrome/browser/search_engines/template_url_service_test_util.cc b/chrome/browser/search_engines/template_url_service_test_util.cc
index 53363002a74d2e8ec9e6f105dc76f24393e3ed66..34894ab0a29a0a1a8db1f1caeb924ae446976c0b 100644
--- a/chrome/browser/search_engines/template_url_service_test_util.cc
+++ b/chrome/browser/search_engines/template_url_service_test_util.cc
@@ -36,8 +36,8 @@ namespace {
// requests. See note in BlockTillServiceProcessesRequests for details.
//
// Schedules a QuitClosure on the message loop it was created with.
-void QuitCallback(MessageLoop* message_loop) {
- message_loop->PostTask(FROM_HERE, MessageLoop::QuitClosure());
+void QuitCallback(base::MessageLoop* message_loop) {
+ message_loop->PostTask(FROM_HERE, base::MessageLoop::QuitClosure());
}
// Blocks the caller until thread has finished servicing all pending
@@ -45,9 +45,11 @@ void QuitCallback(MessageLoop* message_loop) {
static void WaitForThreadToProcessRequests(BrowserThread::ID identifier) {
// Schedule a task on the thread that is processed after all
// pending requests on the thread.
- BrowserThread::PostTask(identifier, FROM_HERE,
- base::Bind(&QuitCallback, MessageLoop::current()));
- MessageLoop::current()->Run();
+ BrowserThread::PostTask(
+ identifier,
+ FROM_HERE,
+ base::Bind(&QuitCallback, base::MessageLoop::current()));
+ base::MessageLoop::current()->Run();
}
} // namespace
@@ -135,8 +137,9 @@ void TemplateURLServiceTestUtil::TearDown() {
BrowserThread::PostTask(BrowserThread::DB, FROM_HERE,
base::Bind(&base::WaitableEvent::Signal, base::Unretained(&done)));
done.Wait();
- MessageLoop::current()->PostTask(FROM_HERE, MessageLoop::QuitClosure());
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->PostTask(FROM_HERE,
+ base::MessageLoop::QuitClosure());
+ base::MessageLoop::current()->Run();
db_thread_.Stop();
UIThreadSearchTermsData::SetGoogleBaseURL(std::string());
« no previous file with comments | « chrome/browser/search_engines/template_url_service_test_util.h ('k') | chrome/browser/service/service_process_control.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698