| Index: ppapi/shared_impl/private/ppb_host_resolver_shared.cc
|
| diff --git a/ppapi/shared_impl/private/ppb_host_resolver_shared.cc b/ppapi/shared_impl/private/ppb_host_resolver_shared.cc
|
| index af3db6282caec66f9f1e37e32cec67fe91b37a43..a79735e81aced1175d4658eacb8e482cd316314c 100644
|
| --- a/ppapi/shared_impl/private/ppb_host_resolver_shared.cc
|
| +++ b/ppapi/shared_impl/private/ppb_host_resolver_shared.cc
|
| @@ -54,15 +54,13 @@ int32_t PPB_HostResolver_Shared::Resolve(
|
| const char* host,
|
| uint16_t port,
|
| const PP_HostResolver_Private_Hint* hint,
|
| - PP_CompletionCallback callback) {
|
| + ApiCallbackType callback) {
|
| if (!host)
|
| return PP_ERROR_BADARGUMENT;
|
| - if (!callback.func)
|
| - return PP_ERROR_BLOCKS_MAIN_THREAD;
|
| if (ResolveInProgress())
|
| return PP_ERROR_INPROGRESS;
|
|
|
| - resolve_callback_ = new TrackedCallback(this, callback);
|
| + resolve_callback_ = callback;
|
|
|
| HostPortPair host_port;
|
| host_port.host = host;
|
|
|