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

Unified Diff: chrome/common/profiling.cc

Issue 8483003: Callback API Change: Reimplement Bind(); support IgnoreResult, full currying, and use less types (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address initial comments. Created 9 years, 1 month 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
Index: chrome/common/profiling.cc
diff --git a/chrome/common/profiling.cc b/chrome/common/profiling.cc
index 1a56086a2f5436589526bc0155c3cdabe89ba4bb..e0323c7f133975230c1d18faf68ecc6c7d5a1947 100644
--- a/chrome/common/profiling.cc
+++ b/chrome/common/profiling.cc
@@ -54,7 +54,7 @@ void FlushProfilingData(base::Thread* thread) {
}
}
thread->message_loop()->PostDelayedTask(
- FROM_HERE, base::Bind(FlushProfilingData, thread), flush_seconds * 1000);
+ FROM_HERE, base::Bind(&FlushProfilingData, thread), flush_seconds * 1000);
}
class ProfilingThreadControl {
@@ -69,7 +69,7 @@ class ProfilingThreadControl {
thread_ = new base::Thread("Profiling_Flush");
thread_->Start();
thread_->message_loop()->PostTask(
- FROM_HERE, base::Bind(FlushProfilingData, thread_));
+ FROM_HERE, base::Bind(&FlushProfilingData, thread_));
}
void Stop() {

Powered by Google App Engine
This is Rietveld 408576698