mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user