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

Unified Diff: components/test_runner/mock_web_speech_recognizer.cc

Issue 2357043003: Remove WebCallbackTask (Closed)
Patch Set: fix 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..250f8eceae41207fd77639277bd475513740e11f 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() {

Powered by Google App Engine
This is Rietveld 408576698