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

Unified Diff: chrome/browser/chromeos/login/login_utils_browsertest.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/chromeos/login/login_utils_browsertest.cc
diff --git a/chrome/browser/chromeos/login/login_utils_browsertest.cc b/chrome/browser/chromeos/login/login_utils_browsertest.cc
index e226b222e62263877d785248ba42fe98f8d010b3..69b16676fcc381082bf244c7c8d66db72d9e14ac 100644
--- a/chrome/browser/chromeos/login/login_utils_browsertest.cc
+++ b/chrome/browser/chromeos/login/login_utils_browsertest.cc
@@ -134,7 +134,7 @@ void BlockLoop(base::WaitableEvent* completion, base::Callback<bool()> work) {
do {
completion->Wait();
} while (work.Run());
- MessageLoop::current()->QuitNow();
+ base::MessageLoop::current()->QuitNow();
}
void CopyLockResult(base::RunLoop* loop,
@@ -159,7 +159,7 @@ class LoginUtilsTest : public testing::Test,
LoginUtilsTest()
: fake_io_thread_completion_(false, false),
fake_io_thread_("fake_io_thread"),
- loop_(MessageLoop::TYPE_IO),
+ loop_(base::MessageLoop::TYPE_IO),
browser_process_(TestingBrowserProcess::GetGlobal()),
local_state_(browser_process_),
ui_thread_(BrowserThread::UI, &loop_),
@@ -185,8 +185,8 @@ class LoginUtilsTest : public testing::Test,
// A thread is needed to create a new MessageLoop, since there can be only
// one loop per thread.
fake_io_thread_.StartWithOptions(
- base::Thread::Options(MessageLoop::TYPE_IO, 0));
- MessageLoop* fake_io_loop = fake_io_thread_.message_loop();
+ base::Thread::Options(base::MessageLoop::TYPE_IO, 0));
+ base::MessageLoop* fake_io_loop = fake_io_thread_.message_loop();
// Make this loop enter the single task, BlockLoop(). Pass in the completion
// event and the work callback.
fake_io_thread_.StopSoon();
@@ -363,7 +363,7 @@ class LoginUtilsTest : public testing::Test,
fake_io_thread_work_.Reset();
BrowserThread::PostTask(
BrowserThread::UI, FROM_HERE,
- MessageLoop::QuitWhenIdleClosure());
+ base::MessageLoop::QuitWhenIdleClosure());
// If there was work then keep waiting for more work.
// If there was no work then quit the fake IO loop.
return has_work;
@@ -503,7 +503,7 @@ class LoginUtilsTest : public testing::Test,
base::WaitableEvent fake_io_thread_completion_;
base::Thread fake_io_thread_;
- MessageLoop loop_;
+ base::MessageLoop loop_;
TestingBrowserProcess* browser_process_;
ScopedTestingLocalState local_state_;
« no previous file with comments | « chrome/browser/chromeos/login/login_performer.cc ('k') | chrome/browser/chromeos/login/merge_session_load_page_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698