diff options
Diffstat (limited to 'content/browser/user_metrics.cc')
-rw-r--r-- | content/browser/user_metrics.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/content/browser/user_metrics.cc b/content/browser/user_metrics.cc index 6f0a35f..b359654 100644 --- a/content/browser/user_metrics.cc +++ b/content/browser/user_metrics.cc @@ -4,6 +4,7 @@ #include "content/browser/user_metrics.h" +#include "base/bind.h" #include "content/public/browser/browser_thread.h" #include "content/public/browser/notification_service.h" #include "content/public/browser/notification_types.h" @@ -20,9 +21,8 @@ void UserMetrics::RecordComputedAction(const std::string& action) { void UserMetrics::Record(const char *action) { if (!BrowserThread::CurrentlyOn(BrowserThread::UI)) { - BrowserThread::PostTask( - BrowserThread::UI, FROM_HERE, - NewRunnableFunction(&UserMetrics::CallRecordOnUI, action)); + BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, + base::Bind(&UserMetrics::CallRecordOnUI, action)); return; } |