| Index: remoting/host/plugin/host_plugin.cc
|
| diff --git a/remoting/host/plugin/host_plugin.cc b/remoting/host/plugin/host_plugin.cc
|
| index f001afbe428872f314ce7ec2173419fc9db74c45..69340d055552f430b7ed4889922c1274b73288da 100644
|
| --- a/remoting/host/plugin/host_plugin.cc
|
| +++ b/remoting/host/plugin/host_plugin.cc
|
| @@ -148,13 +148,13 @@ class HostNPPlugin : public remoting::PluginMessageLoopProxy::Delegate {
|
|
|
| // PluginMessageLoopProxy::Delegate implementation.
|
| virtual bool RunOnPluginThread(
|
| - int delay_ms, void(function)(void*), void* data) OVERRIDE {
|
| - if (delay_ms == 0) {
|
| + base::TimeDelta delay, void(function)(void*), void* data) OVERRIDE {
|
| + if (delay == base::TimeDelta()) {
|
| g_npnetscape_funcs->pluginthreadasynccall(instance_, function, data);
|
| } else {
|
| base::AutoLock auto_lock(timers_lock_);
|
| uint32_t timer_id = g_npnetscape_funcs->scheduletimer(
|
| - instance_, delay_ms, false, &NPDelayedTaskSpringboard);
|
| + instance_, delay.InMilliseconds(), false, &NPDelayedTaskSpringboard);
|
| DelayedTask task = {function, data};
|
| timers_[timer_id] = task;
|
| }
|
|
|