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

Unified Diff: chrome/browser/history/top_sites_likely_impl_unittest.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/history/top_sites_likely_impl_unittest.cc
diff --git a/chrome/browser/history/top_sites_likely_impl_unittest.cc b/chrome/browser/history/top_sites_likely_impl_unittest.cc
index 684c51b0c79ad5b37352c530e6fcf70449e4a936..1901b7e2bd7f75df1328fedc7b9207672ac03f95 100644
--- a/chrome/browser/history/top_sites_likely_impl_unittest.cc
+++ b/chrome/browser/history/top_sites_likely_impl_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 TopSitesLikelyImplTest : 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
@@ -203,7 +203,7 @@ class TopSitesLikelyImplTest : public HistoryUnitTestBase {
base::Bind(&TopSitesLikelyImplTest::QuitCallback,
base::Unretained(this)),
&cancelable_task_tracker_);
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
}
TopSitesLikelyImpl* top_sites() {
@@ -240,7 +240,7 @@ class TopSitesLikelyImplTest : 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.
@@ -328,7 +328,7 @@ class TopSitesLikelyImplTest : public HistoryUnitTestBase {
}
private:
- MessageLoopForUI message_loop_;
+ base::MessageLoopForUI message_loop_;
content::TestBrowserThread ui_thread_;
content::TestBrowserThread db_thread_;
scoped_ptr<TestingProfile> profile_;
« no previous file with comments | « chrome/browser/history/top_sites_impl_unittest.cc ('k') | chrome/browser/history/typed_url_syncable_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698