| Index: chrome/common/profiling.cc
|
| diff --git a/chrome/common/profiling.cc b/chrome/common/profiling.cc
|
| index 24914d5ebb72a42f1a63a0d240aaa77cf50c7cce..b15cc963482625f8661fbb261dfdc6dc3eba50a9 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 {
|
|
|