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

Unified Diff: chrome/browser/devtools/devtools_sanity_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/devtools/devtools_sanity_browsertest.cc
diff --git a/chrome/browser/devtools/devtools_sanity_browsertest.cc b/chrome/browser/devtools/devtools_sanity_browsertest.cc
index e143d81c02f7dbec3c00d77a8a7c9390ac9397f6..d5b6889b7455e8a51ca44bdff7cebe941a9b7e93 100644
--- a/chrome/browser/devtools/devtools_sanity_browsertest.cc
+++ b/chrome/browser/devtools/devtools_sanity_browsertest.cc
@@ -70,7 +70,7 @@ class BrowserClosedObserver : public content::NotificationObserver {
virtual void Observe(int type,
const content::NotificationSource& source,
const content::NotificationDetails& details) OVERRIDE {
- MessageLoopForUI::current()->Quit();
+ base::MessageLoopForUI::current()->Quit();
}
private:
@@ -171,7 +171,7 @@ class DevToolsSanityTest : public InProcessBrowserTest {
void TimeoutCallback(const std::string& timeout_message) {
FAIL() << timeout_message;
- MessageLoop::current()->Quit();
+ base::MessageLoop::current()->Quit();
}
// Base class for DevTools tests that test devtools functionality for
@@ -203,7 +203,7 @@ class DevToolsExtensionTest : public DevToolsSanityTest,
content::NotificationService::AllSources());
base::CancelableClosure timeout(
base::Bind(&TimeoutCallback, "Extension load timed out."));
- MessageLoop::current()->PostDelayedTask(
+ base::MessageLoop::current()->PostDelayedTask(
FROM_HERE, timeout.callback(), base::TimeDelta::FromSeconds(4));
extensions::UnpackedInstaller::Create(service)->Load(path);
content::RunMessageLoop();
@@ -226,7 +226,7 @@ class DevToolsExtensionTest : public DevToolsSanityTest,
content::NotificationService::AllSources());
base::CancelableClosure timeout(
base::Bind(&TimeoutCallback, "Extension host load timed out."));
- MessageLoop::current()->PostDelayedTask(
+ base::MessageLoop::current()->PostDelayedTask(
FROM_HERE, timeout.callback(), base::TimeDelta::FromSeconds(4));
ExtensionProcessManager* manager =
@@ -252,7 +252,7 @@ class DevToolsExtensionTest : public DevToolsSanityTest,
switch (type) {
case chrome::NOTIFICATION_EXTENSION_LOADED:
case chrome::NOTIFICATION_EXTENSION_HOST_DID_STOP_LOADING:
- MessageLoopForUI::current()->Quit();
+ base::MessageLoopForUI::current()->Quit();
break;
default:
NOTREACHED();
@@ -304,7 +304,7 @@ class WorkerDevToolsSanityTest : public InProcessBrowserTest {
worker_data_->worker_route_id = route_id;
WorkerService::GetInstance()->RemoveObserver(this);
BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
- MessageLoop::QuitClosure());
+ base::MessageLoop::QuitClosure());
delete this;
}
scoped_refptr<WorkerData> worker_data_;
@@ -324,7 +324,7 @@ class WorkerDevToolsSanityTest : public InProcessBrowserTest {
ASSERT_EQ(worker_data_->worker_route_id, route_id);
WorkerService::GetInstance()->RemoveObserver(this);
BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
- MessageLoop::QuitClosure());
+ base::MessageLoop::QuitClosure());
delete this;
}
scoped_refptr<WorkerData> worker_data_;
@@ -366,7 +366,7 @@ class WorkerDevToolsSanityTest : public InProcessBrowserTest {
worker_data->worker_process_id = worker_info[0].process_id;
worker_data->worker_route_id = worker_info[0].route_id;
BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
- MessageLoop::QuitClosure());
+ base::MessageLoop::QuitClosure());
return;
}
« no previous file with comments | « chrome/browser/devtools/devtools_adb_bridge.cc ('k') | chrome/browser/download/chrome_download_manager_delegate_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698