Commit 98a47ec7 authored by tedvessenes@gmail.com's avatar tedvessenes@gmail.com

Convert uses of int ms to TimeDelta in chrome/browser/speech.


R=satish@chromium.org
BUG=108171


Review URL: http://codereview.chromium.org/9585039

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124917 0039d316-1c4b-4281-b951-d872f2087c98
parent b34de1aa
......@@ -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_));
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment