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

Unified Diff: chrome/browser/extensions/extension_tts_apitest.cc

Issue 9581042: Convert uses of int ms to TimeDelta in chrome/browser/extensions. (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/extensions/extension_tts_apitest.cc
diff --git a/chrome/browser/extensions/extension_tts_apitest.cc b/chrome/browser/extensions/extension_tts_apitest.cc
index 71a1c0426a49b27dea7ab41b05b16a83276a8fce..e02923ec42a18d16a15f8dd6d7a2f30bc7d087e2 100644
--- a/chrome/browser/extensions/extension_tts_apitest.cc
+++ b/chrome/browser/extensions/extension_tts_apitest.cc
@@ -63,7 +63,7 @@ class MockExtensionTtsPlatformImpl : public ExtensionTtsPlatformImpl {
ptr_factory_.GetWeakPtr(),
false, utterance_id, TTS_EVENT_END, utterance.size(),
std::string()),
- 0);
+ base::TimeDelta());
}
void SendEndEventWhenQueueNotEmpty(
@@ -76,7 +76,7 @@ class MockExtensionTtsPlatformImpl : public ExtensionTtsPlatformImpl {
&MockExtensionTtsPlatformImpl::SendEvent,
ptr_factory_.GetWeakPtr(),
true, utterance_id, TTS_EVENT_END, utterance.size(), std::string()),
- 0);
+ base::TimeDelta());
}
void SendWordEvents(int utterance_id,
@@ -91,7 +91,7 @@ class MockExtensionTtsPlatformImpl : public ExtensionTtsPlatformImpl {
ptr_factory_.GetWeakPtr(),
false, utterance_id, TTS_EVENT_WORD, i,
std::string()),
- 0);
+ base::TimeDelta());
}
}
}
@@ -108,7 +108,7 @@ class MockExtensionTtsPlatformImpl : public ExtensionTtsPlatformImpl {
&MockExtensionTtsPlatformImpl::SendEvent,
ptr_factory_.GetWeakPtr(),
true, utterance_id, event_type, char_index, message),
- 100);
+ base::TimeDelta::FromMilliseconds(100));
return;
}
« 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