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,9 +8,10 @@
|
||||
#include "ui/events/keycodes/keyboard_codes.h"
|
||||
#include "ui/events/keycodes/keyboard_code_conversion.h"
|
||||
|
||||
#include "include/base/cef_bind.h"
|
||||
#include "include/base/cef_logging.h"
|
||||
#include "include/cef_runnable.h"
|
||||
#include "include/cef_v8.h"
|
||||
#include "include/wrapper/cef_closure_task.h"
|
||||
#include "include/wrapper/cef_stream_resource_handler.h"
|
||||
#include "tests/cefclient/client_app.h"
|
||||
#include "tests/cefclient/resource_util.h"
|
||||
@@ -229,8 +230,8 @@ class OSRTestHandler : public RoutingTestHandler,
|
||||
// Each test has a 5 second timeout. After this timeout it will be destroyed
|
||||
// and the test will fail. DestroyTest will be called at the timeout even
|
||||
// if the test is already destroyed and this is fine.
|
||||
CefPostDelayedTask(TID_UI, NewCefRunnableMethod(this,
|
||||
&OSRTestHandler::DestroyTest), 5000);
|
||||
CefPostDelayedTask(TID_UI, base::Bind(&OSRTestHandler::DestroyTest, this),
|
||||
5000);
|
||||
#endif // DEBUGGER_ATTACHED
|
||||
}
|
||||
|
||||
@@ -936,10 +937,8 @@ class OSRTestHandler : public RoutingTestHandler,
|
||||
void DestroySucceededTestSoon() {
|
||||
if (succeeded())
|
||||
return;
|
||||
if (++event_count_ == event_total_) {
|
||||
CefPostTask(TID_UI, NewCefRunnableMethod(this,
|
||||
&OSRTestHandler::DestroyTest));
|
||||
}
|
||||
if (++event_count_ == event_total_)
|
||||
CefPostTask(TID_UI, base::Bind(&OSRTestHandler::DestroyTest, this));
|
||||
}
|
||||
|
||||
void ExpandDropDown() {
|
||||
|
Reference in New Issue
Block a user