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

Unified Diff: chrome/common/profiling.cc

Issue 9233018: Convert use of int ms to TimeDelta in files owned by brettw. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase onto master. Created 8 years, 11 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/common/important_file_writer_unittest.cc ('k') | chrome/common/service_process_util_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
« no previous file with comments | « chrome/common/important_file_writer_unittest.cc ('k') | chrome/common/service_process_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698