Commit 5f285817 authored by tedvessenes@gmail.com's avatar tedvessenes@gmail.com

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


BUG=108171


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124879 0039d316-1c4b-4281-b951-d872f2087c98
parent cf84336d
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
...@@ -63,7 +63,7 @@ class MockExtensionTtsPlatformImpl : public ExtensionTtsPlatformImpl { ...@@ -63,7 +63,7 @@ class MockExtensionTtsPlatformImpl : public ExtensionTtsPlatformImpl {
ptr_factory_.GetWeakPtr(), ptr_factory_.GetWeakPtr(),
false, utterance_id, TTS_EVENT_END, utterance.size(), false, utterance_id, TTS_EVENT_END, utterance.size(),
std::string()), std::string()),
0); base::TimeDelta());
} }
void SendEndEventWhenQueueNotEmpty( void SendEndEventWhenQueueNotEmpty(
...@@ -76,7 +76,7 @@ class MockExtensionTtsPlatformImpl : public ExtensionTtsPlatformImpl { ...@@ -76,7 +76,7 @@ class MockExtensionTtsPlatformImpl : public ExtensionTtsPlatformImpl {
&MockExtensionTtsPlatformImpl::SendEvent, &MockExtensionTtsPlatformImpl::SendEvent,
ptr_factory_.GetWeakPtr(), ptr_factory_.GetWeakPtr(),
true, utterance_id, TTS_EVENT_END, utterance.size(), std::string()), true, utterance_id, TTS_EVENT_END, utterance.size(), std::string()),
0); base::TimeDelta());
} }
void SendWordEvents(int utterance_id, void SendWordEvents(int utterance_id,
...@@ -91,7 +91,7 @@ class MockExtensionTtsPlatformImpl : public ExtensionTtsPlatformImpl { ...@@ -91,7 +91,7 @@ class MockExtensionTtsPlatformImpl : public ExtensionTtsPlatformImpl {
ptr_factory_.GetWeakPtr(), ptr_factory_.GetWeakPtr(),
false, utterance_id, TTS_EVENT_WORD, i, false, utterance_id, TTS_EVENT_WORD, i,
std::string()), std::string()),
0); base::TimeDelta());
} }
} }
} }
...@@ -108,7 +108,7 @@ class MockExtensionTtsPlatformImpl : public ExtensionTtsPlatformImpl { ...@@ -108,7 +108,7 @@ class MockExtensionTtsPlatformImpl : public ExtensionTtsPlatformImpl {
&MockExtensionTtsPlatformImpl::SendEvent, &MockExtensionTtsPlatformImpl::SendEvent,
ptr_factory_.GetWeakPtr(), ptr_factory_.GetWeakPtr(),
true, utterance_id, event_type, char_index, message), true, utterance_id, event_type, char_index, message),
100); base::TimeDelta::FromMilliseconds(100));
return; return;
} }
......
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