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

Unified Diff: content/shell/renderer/test_runner/mock_web_speech_recognizer.cc

Issue 566833002: Update WebTask in chromium c++ style (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: resolved build error Created 6 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: content/shell/renderer/test_runner/mock_web_speech_recognizer.cc
diff --git a/content/shell/renderer/test_runner/mock_web_speech_recognizer.cc b/content/shell/renderer/test_runner/mock_web_speech_recognizer.cc
index bf7864d4d61e5fc940b5173131f983000a89b78a..de468f8376a19d5a137771530f2427afcc091603 100644
--- a/content/shell/renderer/test_runner/mock_web_speech_recognizer.cc
+++ b/content/shell/renderer/test_runner/mock_web_speech_recognizer.cc
@@ -231,23 +231,23 @@ void MockWebSpeechRecognizer::ClearTaskQueue() {
task_queue_running_ = false;
}
-void MockWebSpeechRecognizer::StepTask::runIfValid() {
- if (m_object->task_queue_.empty()) {
- m_object->task_queue_running_ = false;
+void MockWebSpeechRecognizer::StepTask::RunIfValid() {
+ if (object_->task_queue_.empty()) {
+ object_->task_queue_running_ = false;
return;
}
- Task* task = m_object->task_queue_.front();
- m_object->task_queue_.pop_front();
+ Task* task = object_->task_queue_.front();
+ object_->task_queue_.pop_front();
task->run();
delete task;
- if (m_object->task_queue_.empty()) {
- m_object->task_queue_running_ = false;
+ if (object_->task_queue_.empty()) {
+ object_->task_queue_running_ = false;
return;
}
- m_object->delegate_->postTask(new StepTask(m_object));
+ object_->delegate_->postTask(new StepTask(object_));
}
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698