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

Unified Diff: webkit/plugins/npapi/webplugin_delegate_impl_win.cc

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/ui_test.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/npapi/webplugin_delegate_impl_win.cc
diff --git a/webkit/plugins/npapi/webplugin_delegate_impl_win.cc b/webkit/plugins/npapi/webplugin_delegate_impl_win.cc
index 2b1229acebb5678e1c96539314184a04263afa2d..cb6a2e8fe3ed39869602cb11c9779f1fd0ee3d97 100644
--- a/webkit/plugins/npapi/webplugin_delegate_impl_win.cc
+++ b/webkit/plugins/npapi/webplugin_delegate_impl_win.cc
@@ -821,7 +821,7 @@ void WebPluginDelegateImpl::OnThrottleMessage() {
if (!throttle_queue_was_empty) {
MessageLoop::current()->PostDelayedTask(
FROM_HERE, base::Bind(&WebPluginDelegateImpl::OnThrottleMessage),
- kFlashWMUSERMessageThrottleDelayMs);
+ base::TimeDelta::FromMilliseconds(kFlashWMUSERMessageThrottleDelayMs));
}
}
@@ -844,7 +844,7 @@ void WebPluginDelegateImpl::ThrottleMessage(WNDPROC proc, HWND hwnd,
if (throttle_queue->size() == 1) {
MessageLoop::current()->PostDelayedTask(
FROM_HERE, base::Bind(&WebPluginDelegateImpl::OnThrottleMessage),
- kFlashWMUSERMessageThrottleDelayMs);
+ base::TimeDelta::FromMilliseconds(kFlashWMUSERMessageThrottleDelayMs));
}
}
@@ -1205,7 +1205,7 @@ LRESULT CALLBACK WebPluginDelegateImpl::NativeWndProc(
FROM_HERE,
base::Bind(&WebPluginDelegateImpl::OnUserGestureEnd,
delegate->user_gesture_msg_factory_.GetWeakPtr()),
- kWindowedPluginPopupTimerMs);
+ base::TimeDelta::FromMilliseconds(kWindowedPluginPopupTimerMs));
}
HandleCaptureForMessage(hwnd, message);
« no previous file with comments | « chrome_frame/test/ui_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698