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

Unified Diff: components/test_runner/mock_web_midi_accessor.cc

Issue 2357043003: Remove WebCallbackTask (Closed)
Patch Set: remove WebTaskRunner::postTask(base::Closure). git cl format Created 4 years, 3 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 | « components/test_runner/mock_color_chooser.cc ('k') | components/test_runner/mock_web_speech_recognizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test_runner/mock_web_midi_accessor.cc
diff --git a/components/test_runner/mock_web_midi_accessor.cc b/components/test_runner/mock_web_midi_accessor.cc
index b53915b4b37d9ee8e51312874e5a1bc84004a25f..45dc5310a63f75456de0d7d1f36ac788df7faf97 100644
--- a/components/test_runner/mock_web_midi_accessor.cc
+++ b/components/test_runner/mock_web_midi_accessor.cc
@@ -9,7 +9,6 @@
#include "base/macros.h"
#include "components/test_runner/test_interfaces.h"
#include "components/test_runner/test_runner.h"
-#include "components/test_runner/web_task.h"
#include "components/test_runner/web_test_delegate.h"
#include "components/test_runner/web_test_runner.h"
#include "third_party/WebKit/public/platform/WebString.h"
@@ -38,9 +37,9 @@ void MockWebMIDIAccessor::startSession() {
"MockOutputName",
"MockOutputVersion",
state);
- interfaces_->GetDelegate()->PostTask(new WebCallbackTask(base::Bind(
+ interfaces_->GetDelegate()->PostTask(base::Bind(
&MockWebMIDIAccessor::ReportStartedSession, weak_factory_.GetWeakPtr(),
- interfaces_->GetTestRunner()->midiAccessorResult())));
+ interfaces_->GetTestRunner()->midiAccessorResult()));
}
void MockWebMIDIAccessor::ReportStartedSession(bool success) {
« no previous file with comments | « components/test_runner/mock_color_chooser.cc ('k') | components/test_runner/mock_web_speech_recognizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698