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

Unified Diff: chrome/browser/history/top_sites_unittest.cc

Issue 14113053: chrome: Use base::MessageLoop. (Part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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/history/top_sites_unittest.cc
diff --git a/chrome/browser/history/top_sites_unittest.cc b/chrome/browser/history/top_sites_unittest.cc
index b04fb5203e12ba603bab8a45a45b4feef5000ad3..60baf8a4144b5fe93e079e2f2fb9a102fb47b014 100644
--- a/chrome/browser/history/top_sites_unittest.cc
+++ b/chrome/browser/history/top_sites_unittest.cc
@@ -59,7 +59,7 @@ class WaitForHistoryTask : public HistoryDBTask {
}
virtual void DoneRunOnMainThread() OVERRIDE {
- MessageLoop::current()->Quit();
+ base::MessageLoop::current()->Quit();
}
private:
@@ -87,7 +87,7 @@ class TopSitesQuerier {
weak_ptr_factory_.GetWeakPtr()));
if (wait && start_number_of_callbacks == number_of_callbacks_) {
waiting_ = true;
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
}
}
@@ -106,7 +106,7 @@ class TopSitesQuerier {
urls_ = data;
number_of_callbacks_++;
if (waiting_) {
- MessageLoop::current()->Quit();
+ base::MessageLoop::current()->Quit();
waiting_ = false;
}
}
@@ -193,7 +193,7 @@ class TopSitesTest : public HistoryUnitTestBase {
// need to wait until you know history has processed a task.
void WaitForHistory() {
history_service()->ScheduleDBTask(new WaitForHistoryTask(), &consumer_);
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
}
// Waits for top sites to finish processing a task. This is useful if you need
@@ -202,7 +202,7 @@ class TopSitesTest : public HistoryUnitTestBase {
top_sites()->backend_->DoEmptyRequest(
base::Bind(&TopSitesTest::QuitCallback, base::Unretained(this)),
&cancelable_task_tracker_);
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
}
TopSites* top_sites() { return profile_->GetTopSites(); }
@@ -237,7 +237,7 @@ class TopSitesTest : public HistoryUnitTestBase {
// Quit the current message loop when invoked. Useful when running a nested
// message loop.
void QuitCallback() {
- MessageLoop::current()->Quit();
+ base::MessageLoop::current()->Quit();
}
// Adds a page to history.
@@ -325,7 +325,7 @@ class TopSitesTest : public HistoryUnitTestBase {
}
private:
- MessageLoopForUI message_loop_;
+ base::MessageLoopForUI message_loop_;
content::TestBrowserThread ui_thread_;
content::TestBrowserThread db_thread_;
scoped_ptr<TestingProfile> profile_;

Powered by Google App Engine
This is Rietveld 408576698