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

Unified Diff: chrome/browser/download/download_browsertest.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/download/download_browsertest.cc
diff --git a/chrome/browser/download/download_browsertest.cc b/chrome/browser/download/download_browsertest.cc
index 42e369707b9274429c901dbd6890907b603bd4bf..ba0f098635e1d31bb154c6bc32971b3592bf2df5 100644
--- a/chrome/browser/download/download_browsertest.cc
+++ b/chrome/browser/download/download_browsertest.cc
@@ -123,7 +123,7 @@ class CreatedObserver : public content::DownloadManager::Observer {
content::DownloadItem* item) OVERRIDE {
DCHECK_EQ(manager_, manager);
if (waiting_)
- MessageLoopForUI::current()->Quit();
+ base::MessageLoopForUI::current()->Quit();
}
content::DownloadManager* manager_;
@@ -165,10 +165,10 @@ class PercentWaiter : public content::DownloadItem::Observer {
(item_->PercentComplete() != 100)))) {
error_ = true;
if (waiting_)
- MessageLoopForUI::current()->Quit();
+ base::MessageLoopForUI::current()->Quit();
}
if (item_->GetState() == DownloadItem::COMPLETE && waiting_)
- MessageLoopForUI::current()->Quit();
+ base::MessageLoopForUI::current()->Quit();
}
virtual void OnDownloadDestroyed(content::DownloadItem* item) OVERRIDE {
@@ -220,7 +220,7 @@ class DownloadsHistoryDataCollector {
scoped_ptr<std::vector<history::DownloadRow> > entries) {
result_valid_ = true;
results_ = entries.Pass();
- MessageLoopForUI::current()->Quit();
+ base::MessageLoopForUI::current()->Quit();
}
Profile* profile_;
@@ -246,7 +246,7 @@ class MockAbortExtensionInstallPrompt : public ExtensionInstallPrompt {
const Extension* extension,
const ShowDialogCallback& show_dialog_callback) OVERRIDE {
delegate->InstallUIAbort(true);
- MessageLoopForUI::current()->Quit();
+ base::MessageLoopForUI::current()->Quit();
}
virtual void OnInstallSuccess(const Extension* extension,
@@ -349,7 +349,7 @@ class HistoryObserver : public DownloadHistory::Observer {
seen_stored_ = true;
if (waiting_)
- MessageLoopForUI::current()->Quit();
+ base::MessageLoopForUI::current()->Quit();
}
virtual void OnDownloadHistoryDestroyed() OVERRIDE {
@@ -1007,7 +1007,7 @@ class DownloadTest : public InProcessBrowserTest {
if (URLRequestSlowDownloadJob::NumberOutstandingRequests())
*result = false;
BrowserThread::PostTask(
- BrowserThread::UI, FROM_HERE, MessageLoop::QuitClosure());
+ BrowserThread::UI, FROM_HERE, base::MessageLoop::QuitClosure());
}
// Location of the test data.
@@ -1186,8 +1186,8 @@ IN_PROC_BROWSER_TEST_F(DownloadTest, DownloadResourceThrottleCancels) {
ASSERT_TRUE(download_assempted);
observer.WaitForObservation(
base::Bind(&content::RunMessageLoop),
- base::Bind(&MessageLoop::Quit,
- base::Unretained(MessageLoopForUI::current())));
+ base::Bind(&base::MessageLoop::Quit,
+ base::Unretained(base::MessageLoopForUI::current())));
// Check that we did not download the file.
base::FilePath file(FILE_PATH_LITERAL("download-test1.lib"));

Powered by Google App Engine
This is Rietveld 408576698