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

Unified Diff: content/browser/plugin_service_browsertest.cc

Issue 8872030: Removing MessageLoop::QuitTask() from content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix escaping Created 9 years 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: content/browser/plugin_service_browsertest.cc
diff --git a/content/browser/plugin_service_browsertest.cc b/content/browser/plugin_service_browsertest.cc
index bd7cd34a55cbf13daa5b9d182057f626afcdf58b..e6752c1df6ea87e035e8b2682b4d0243868a957e 100644
--- a/content/browser/plugin_service_browsertest.cc
+++ b/content/browser/plugin_service_browsertest.cc
@@ -75,7 +75,7 @@ class MockPluginProcessHostClient : public PluginProcessHost::Client,
MOCK_METHOD1(OnMessageReceived, bool(const IPC::Message& message));
void OnChannelConnected(int32 peer_pid) OVERRIDE {
BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
- new MessageLoop::QuitTask());
+ MessageLoop::QuitClosure());
}
MOCK_METHOD0(OnChannelError, void());
MOCK_METHOD0(OnChannelDenied, void());
@@ -152,7 +152,7 @@ void DoNothing() {}
void QuitUIMessageLoopFromIOThread() {
BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
- new MessageLoop::QuitTask());
+ MessageLoop::QuitClosure());
}
void OpenChannelAndThenCancel(PluginProcessHost::Client* client) {
@@ -280,7 +280,7 @@ class MockCanceledAfterSentPluginProcessHostClient
on_sent_plugin_channel_request_called_ = true;
host()->CancelSentRequest(this);
BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
- new MessageLoop::QuitTask());
+ MessageLoop::QuitClosure());
}
bool on_sent_plugin_channel_request_called() const {

Powered by Google App Engine
This is Rietveld 408576698