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

Unified Diff: chrome_frame/test/mock_ie_event_sink_actions.h

Issue 10019015: Update uses of TimeDelta in chrome_frame/*. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Another rebase onto master. Created 8 years, 8 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 | « chrome_frame/test/chrome_frame_test_utils.h ('k') | chrome_frame/test/navigation_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/test/mock_ie_event_sink_actions.h
diff --git a/chrome_frame/test/mock_ie_event_sink_actions.h b/chrome_frame/test/mock_ie_event_sink_actions.h
index 10af3fdba39a852abc82be5ba29468e964e365e0..384a58b8bf7e3979796586a495f22d6b7602bf5e 100644
--- a/chrome_frame/test/mock_ie_event_sink_actions.h
+++ b/chrome_frame/test/mock_ie_event_sink_actions.h
@@ -310,7 +310,8 @@ ACTION(DoCloseWindow) {
ACTION_P(DelayDoCloseWindow, delay) {
DCHECK(MessageLoop::current());
MessageLoop::current()->PostDelayedTask(
- FROM_HERE, base::Bind(DoCloseWindowNow, arg0), delay);
+ FROM_HERE, base::Bind(DoCloseWindowNow, arg0),
+ base::TimeDelta::FromMilliseconds(delay));
}
ACTION(KillChromeFrameProcesses) {
@@ -429,8 +430,8 @@ ACTION_P3(TypeUrlInAddressBar, loop, url, delay) {
FROM_HERE,
base::Bind(simulate_input::SendCharA, 'd', simulate_input::ALT), delay);
- const unsigned int kInterval = 500;
- int next_delay = delay + kInterval;
+ const base::TimeDelta kInterval = base::TimeDelta::FromMilliseconds(500);
+ base::TimeDelta next_delay = delay + kInterval;
loop->PostDelayedTask(
FROM_HERE, base::Bind(simulate_input::SendStringW, url), next_delay);
« no previous file with comments | « chrome_frame/test/chrome_frame_test_utils.h ('k') | chrome_frame/test/navigation_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698