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

Unified Diff: content/public/test/download_test_observer.cc

Issue 14335017: content: Use base::MessageLoop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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
« no previous file with comments | « content/ppapi_plugin/ppapi_thread.cc ('k') | content/public/test/fake_speech_recognition_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/download_test_observer.cc
diff --git a/content/public/test/download_test_observer.cc b/content/public/test/download_test_observer.cc
index 6a0504efea8cf4fb8c6b514e81af0f6b6ba3016c..3d918255c6d8f5bbd7e87f9b93dd3513e04d93c3 100644
--- a/content/public/test/download_test_observer.cc
+++ b/content/public/test/download_test_observer.cc
@@ -78,7 +78,7 @@ void DownloadUpdatedObserver::OnDownloadUpdated(DownloadItem* item) {
if (filter_.Run(item_))
event_seen_ = true;
if (waiting_ && event_seen_)
- MessageLoopForUI::current()->Quit();
+ base::MessageLoopForUI::current()->Quit();
}
void DownloadUpdatedObserver::OnDownloadDestroyed(DownloadItem* item) {
@@ -86,7 +86,7 @@ void DownloadUpdatedObserver::OnDownloadDestroyed(DownloadItem* item) {
item_->RemoveObserver(this);
item_ = NULL;
if (waiting_)
- MessageLoopForUI::current()->Quit();
+ base::MessageLoopForUI::current()->Quit();
}
DownloadTestObserver::DownloadTestObserver(
@@ -231,7 +231,7 @@ void DownloadTestObserver::DownloadInFinalState(DownloadItem* download) {
void DownloadTestObserver::SignalIfFinished() {
if (waiting_ && IsFinished())
- MessageLoopForUI::current()->Quit();
+ base::MessageLoopForUI::current()->Quit();
}
DownloadTestObserverTerminal::DownloadTestObserverTerminal(
@@ -379,7 +379,7 @@ void DownloadTestFlushObserver::PingIOThread(int cycle) {
base::Bind(&DownloadTestFlushObserver::PingFileThread, this, cycle));
} else {
BrowserThread::PostTask(
- BrowserThread::UI, FROM_HERE, MessageLoop::QuitClosure());
+ BrowserThread::UI, FROM_HERE, base::MessageLoop::QuitClosure());
}
}
@@ -415,7 +415,7 @@ void DownloadTestItemCreationObserver::DownloadItemCreationCallback(
DCHECK_EQ(1u, called_back_count_);
if (waiting_)
- MessageLoopForUI::current()->Quit();
+ base::MessageLoopForUI::current()->Quit();
}
const DownloadUrlParameters::OnStartedCallback
« no previous file with comments | « content/ppapi_plugin/ppapi_thread.cc ('k') | content/public/test/fake_speech_recognition_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698