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

Unified Diff: chrome/browser/history/history_querying_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/history_querying_unittest.cc
diff --git a/chrome/browser/history/history_querying_unittest.cc b/chrome/browser/history/history_querying_unittest.cc
index ed138e8ecd5144227b8f81dabfde673e5eeecb27..64169b283b885ce16446064d76cccfc6f9ce109c 100644
--- a/chrome/browser/history/history_querying_unittest.cc
+++ b/chrome/browser/history/history_querying_unittest.cc
@@ -85,7 +85,8 @@ class HistoryQueryTest : public testing::Test {
UTF8ToUTF16(text_query), options, &consumer_,
base::Bind(&HistoryQueryTest::QueryHistoryComplete,
base::Unretained(this)));
- MessageLoop::current()->Run(); // Will go until ...Complete calls Quit.
+ // Will go until ...Complete calls Quit.
+ base::MessageLoop::current()->Run();
results->Swap(&last_query_results_);
}
@@ -182,21 +183,21 @@ class HistoryQueryTest : public testing::Test {
virtual void TearDown() {
if (history_.get()) {
- history_->SetOnBackendDestroyTask(MessageLoop::QuitClosure());
+ history_->SetOnBackendDestroyTask(base::MessageLoop::QuitClosure());
history_->Cleanup();
history_.reset();
- MessageLoop::current()->Run(); // Wait for the other thread.
+ base::MessageLoop::current()->Run(); // Wait for the other thread.
}
}
void QueryHistoryComplete(HistoryService::Handle, QueryResults* results) {
results->Swap(&last_query_results_);
- MessageLoop::current()->Quit(); // Will return out to QueryHistory.
+ base::MessageLoop::current()->Quit(); // Will return out to QueryHistory.
}
base::ScopedTempDir temp_dir_;
- MessageLoop message_loop_;
+ base::MessageLoop message_loop_;
base::FilePath history_dir_;

Powered by Google App Engine
This is Rietveld 408576698