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

Unified Diff: components/test_runner/mock_web_speech_recognizer.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
Index: components/test_runner/mock_web_speech_recognizer.cc
diff --git a/components/test_runner/mock_web_speech_recognizer.cc b/components/test_runner/mock_web_speech_recognizer.cc
index 78f917607dabfeae145993faa516eac1caf66d8a..d186df199cb1fac189b06e80365e4fd1e3137566 100644
--- a/components/test_runner/mock_web_speech_recognizer.cc
+++ b/components/test_runner/mock_web_speech_recognizer.cc
@@ -10,7 +10,6 @@
#include "base/bind_helpers.h"
#include "base/logging.h"
#include "base/macros.h"
-#include "components/test_runner/web_task.h"
#include "components/test_runner/web_test_delegate.h"
#include "third_party/WebKit/public/web/WebSpeechRecognitionResult.h"
#include "third_party/WebKit/public/web/WebSpeechRecognizerClient.h"
@@ -257,8 +256,8 @@ void MockWebSpeechRecognizer::ClearTaskQueue() {
void MockWebSpeechRecognizer::PostRunTaskFromQueue() {
task_queue_running_ = true;
- delegate_->PostTask(new WebCallbackTask(base::Bind(
- &MockWebSpeechRecognizer::RunTaskFromQueue, weak_factory_.GetWeakPtr())));
+ delegate_->PostTask(base::Bind(&MockWebSpeechRecognizer::RunTaskFromQueue,
+ weak_factory_.GetWeakPtr()));
}
void MockWebSpeechRecognizer::RunTaskFromQueue() {
« no previous file with comments | « components/test_runner/mock_web_midi_accessor.cc ('k') | components/test_runner/mock_web_user_media_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698