Index: chrome/common/profiling.cc |
diff --git a/chrome/common/profiling.cc b/chrome/common/profiling.cc |
index f355052ca7a918c146622454ac0e4352fed80054..270185d76fd742319471dac3267209c15a57c727 100644 |
--- a/chrome/common/profiling.cc |
+++ b/chrome/common/profiling.cc |
@@ -41,7 +41,7 @@ void FlushProfilingData(base::Thread* thread) { |
return; |
base::debug::FlushProfiling(); |
- static int flush_seconds = 0; |
+ static int flush_seconds; |
if (!flush_seconds) { |
const CommandLine& command_line = *CommandLine::ForCurrentProcess(); |
std::string profiling_flush = |
@@ -54,7 +54,9 @@ void FlushProfilingData(base::Thread* thread) { |
} |
} |
thread->message_loop()->PostDelayedTask( |
- FROM_HERE, base::Bind(&FlushProfilingData, thread), flush_seconds * 1000); |
+ FROM_HERE, |
+ base::Bind(&FlushProfilingData, thread), |
+ base::TimeDelta::FromSeconds(flush_seconds)); |
} |
class ProfilingThreadControl { |