| Index: chrome/browser/extensions/api/sockets_tcp/sockets_tcp_api.cc
|
| diff --git a/chrome/browser/extensions/api/sockets_tcp/sockets_tcp_api.cc b/chrome/browser/extensions/api/sockets_tcp/sockets_tcp_api.cc
|
| index fbf02dc0a1e0561a3a3e7ed3c3f0399a2e7e4974..2f2cbbc994ca51728c5cf204d866573a32226a0c 100644
|
| --- a/chrome/browser/extensions/api/sockets_tcp/sockets_tcp_api.cc
|
| +++ b/chrome/browser/extensions/api/sockets_tcp/sockets_tcp_api.cc
|
| @@ -158,7 +158,7 @@ bool SocketsTcpSetPausedFunction::Prepare() {
|
| params_ = api::sockets_tcp::SetPaused::Params::Create(*args_);
|
| EXTENSION_FUNCTION_VALIDATE(params_.get());
|
|
|
| - socket_event_dispatcher_ = TCPSocketEventDispatcher::Get(GetProfile());
|
| + socket_event_dispatcher_ = TCPSocketEventDispatcher::Get(context());
|
| DCHECK(socket_event_dispatcher_) << "There is no socket event dispatcher. "
|
| "If this assertion is failing during a test, then it is likely that "
|
| "TestExtensionSystem is failing to provide an instance of "
|
| @@ -243,7 +243,7 @@ bool SocketsTcpConnectFunction::Prepare() {
|
| params_ = sockets_tcp::Connect::Params::Create(*args_);
|
| EXTENSION_FUNCTION_VALIDATE(params_.get());
|
|
|
| - socket_event_dispatcher_ = TCPSocketEventDispatcher::Get(GetProfile());
|
| + socket_event_dispatcher_ = TCPSocketEventDispatcher::Get(context());
|
| DCHECK(socket_event_dispatcher_) << "There is no socket event dispatcher. "
|
| "If this assertion is failing during a test, then it is likely that "
|
| "TestExtensionSystem is failing to provide an instance of "
|
|
|