Replace NewCefRunnable* usage with base::Bind and fix CefCreateClosureTask typo (issue #1336).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1776 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2014-07-15 18:10:40 +00:00
parent 646ae3310f
commit 1a819fe284
22 changed files with 101 additions and 111 deletions

View File

@@ -8,10 +8,11 @@
#include "base/file_util.h"
#include "base/synchronization/waitable_event.h"
#include "include/cef_runnable.h"
#include "include/base/cef_bind.h"
#include "include/base/cef_trace_event.h"
#include "include/cef_task.h"
#include "include/cef_trace.h"
#include "include/base/cef_trace_event.h"
#include "include/wrapper/cef_closure_task.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "tests/unittests/test_handler.h"
@@ -93,8 +94,7 @@ class TracingTestHandler : public CefEndTracingCallback,
base::FilePath file_path(tracing_file);
CefPostTask(TID_FILE,
NewCefRunnableMethod(this, &TracingTestHandler::ReadTracingFile,
file_path));
base::Bind(&TracingTestHandler::ReadTracingFile, this, file_path));
}
void RunTracing() {
@@ -324,8 +324,7 @@ class TracingTestHandler : public CefEndTracingCallback,
void ExecuteTest() {
// Run the test.
CefPostTask(TID_UI,
NewCefRunnableMethod(this, &TracingTestHandler::RunTracing));
CefPostTask(TID_UI, base::Bind(&TracingTestHandler::RunTracing, this));
// Wait for the test to complete.
completion_event_.Wait();