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

Unified Diff: chrome/browser/google_apis/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/google_apis/test_util.cc
diff --git a/chrome/browser/google_apis/test_util.cc b/chrome/browser/google_apis/test_util.cc
index ef91aecc948484ddf75ade8d32dd08a1cc839173..42a8f86cf7708c6777d28e7acdafe2be84e40b00 100644
--- a/chrome/browser/google_apis/test_util.cc
+++ b/chrome/browser/google_apis/test_util.cc
@@ -28,7 +28,7 @@ namespace google_apis {
namespace test_util {
// This class is used to monitor if any task is posted to a message loop.
-class TaskObserver : public MessageLoop::TaskObserver {
+class TaskObserver : public base::MessageLoop::TaskObserver {
public:
TaskObserver() : posted_(false) {}
virtual ~TaskObserver() {}
@@ -78,9 +78,9 @@ void RunBlockingPoolTask() {
content::BrowserThread::GetBlockingPool()->FlushForTesting();
TaskObserver task_observer;
- MessageLoop::current()->AddTaskObserver(&task_observer);
- MessageLoop::current()->RunUntilIdle();
- MessageLoop::current()->RemoveTaskObserver(&task_observer);
+ base::MessageLoop::current()->AddTaskObserver(&task_observer);
+ base::MessageLoop::current()->RunUntilIdle();
+ base::MessageLoop::current()->RemoveTaskObserver(&task_observer);
if (!task_observer.posted())
break;
}
@@ -88,7 +88,7 @@ void RunBlockingPoolTask() {
void RunAndQuit(const base::Closure& closure) {
closure.Run();
- MessageLoop::current()->Quit();
+ base::MessageLoop::current()->Quit();
}
bool WriteStringToFile(const base::FilePath& file_path,

Powered by Google App Engine
This is Rietveld 408576698