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

Unified Diff: remoting/client/plugin/chromoting_instance.cc

Issue 9572038: Convert uses of int ms to TimeDelta in jingle and remoting. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix nits. 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 | « jingle/glue/thread_wrapper_unittest.cc ('k') | remoting/host/policy_hack/nat_policy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/plugin/chromoting_instance.cc
diff --git a/remoting/client/plugin/chromoting_instance.cc b/remoting/client/plugin/chromoting_instance.cc
index 44796db789a4d8bd27b321db6f12e4977a4a0fbc..fac4d753071068e458d5ef1d6b10bfbdcb0cbf25 100644
--- a/remoting/client/plugin/chromoting_instance.cc
+++ b/remoting/client/plugin/chromoting_instance.cc
@@ -361,7 +361,7 @@ void ChromotingInstance::Connect(const ClientConfig& config) {
// Start timer that periodically sends perf stats.
plugin_message_loop_->PostDelayedTask(
FROM_HERE, base::Bind(&ChromotingInstance::SendPerfStats, AsWeakPtr()),
- kPerfStatsIntervalMs);
+ base::TimeDelta::FromMilliseconds(kPerfStatsIntervalMs));
VLOG(1) << "Connection status: Initializing";
SetConnectionState(STATE_INITIALIZING, ERROR_NONE);
@@ -431,7 +431,7 @@ void ChromotingInstance::SendPerfStats() {
plugin_message_loop_->PostDelayedTask(
FROM_HERE, base::Bind(&ChromotingInstance::SendPerfStats, AsWeakPtr()),
- kPerfStatsIntervalMs);
+ base::TimeDelta::FromMilliseconds(kPerfStatsIntervalMs));
scoped_ptr<base::DictionaryValue> data(new base::DictionaryValue());
ChromotingStats* stats = client_->GetStats();
« no previous file with comments | « jingle/glue/thread_wrapper_unittest.cc ('k') | remoting/host/policy_hack/nat_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698