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

Unified Diff: chrome/browser/speech/speech_input_extension_apitest.cc

Issue 9585039: Convert uses of int ms to TimeDelta in chrome/browser/speech. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/speech/speech_input_extension_apitest.cc
diff --git a/chrome/browser/speech/speech_input_extension_apitest.cc b/chrome/browser/speech/speech_input_extension_apitest.cc
index a53879bd2f242b207c91683b02789ae9edd26cdb..6d3c489d5d45eb873609759437f2622dd997f3f4 100644
--- a/chrome/browser/speech/speech_input_extension_apitest.cc
+++ b/chrome/browser/speech/speech_input_extension_apitest.cc
@@ -131,20 +131,29 @@ void SpeechInputExtensionApiTest::StartRecording(
recognizer_is_valid_ = true;
// Notify that recording started.
- MessageLoop::current()->PostDelayedTask(FROM_HERE,
+ MessageLoop::current()->PostDelayedTask(
+ FROM_HERE,
base::Bind(&SpeechInputExtensionManager::DidStartReceivingAudio,
- GetManager(), caller_id), 0);
+ GetManager(),
+ caller_id),
+ base::TimeDelta());
// Notify sound start in the input device.
- MessageLoop::current()->PostDelayedTask(FROM_HERE,
+ MessageLoop::current()->PostDelayedTask(
+ FROM_HERE,
base::Bind(&SpeechInputExtensionManager::DidStartReceivingSpeech,
- GetManager(), caller_id), 0);
+ GetManager(),
+ caller_id),
+ base::TimeDelta());
if (result_delay_ms_ != kDontDispatchCall) {
// Dispatch the recognition results.
- MessageLoop::current()->PostDelayedTask(FROM_HERE,
- base::Bind(&SpeechInputExtensionApiTest::ProvideResults, this,
- caller_id), result_delay_ms_);
+ MessageLoop::current()->PostDelayedTask(
+ FROM_HERE,
+ base::Bind(&SpeechInputExtensionApiTest::ProvideResults,
+ this,
+ caller_id),
+ base::TimeDelta::FromMilliseconds(result_delay_ms_));
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698