| Index: chrome/browser/extensions/api/sockets_udp/sockets_udp_api.cc
|
| diff --git a/chrome/browser/extensions/api/sockets_udp/sockets_udp_api.cc b/chrome/browser/extensions/api/sockets_udp/sockets_udp_api.cc
|
| index 37c350daa378850faace65525a84e3acf1f47dba..4a1502c8c7522d49b9bd6996af94e24318e027fe 100644
|
| --- a/chrome/browser/extensions/api/sockets_udp/sockets_udp_api.cc
|
| +++ b/chrome/browser/extensions/api/sockets_udp/sockets_udp_api.cc
|
| @@ -140,7 +140,7 @@ bool SocketsUdpSetPausedFunction::Prepare() {
|
| params_ = api::sockets_udp::SetPaused::Params::Create(*args_);
|
| EXTENSION_FUNCTION_VALIDATE(params_.get());
|
|
|
| - socket_event_dispatcher_ = UDPSocketEventDispatcher::Get(GetProfile());
|
| + socket_event_dispatcher_ = UDPSocketEventDispatcher::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 "
|
| @@ -176,7 +176,7 @@ bool SocketsUdpBindFunction::Prepare() {
|
| params_ = sockets_udp::Bind::Params::Create(*args_);
|
| EXTENSION_FUNCTION_VALIDATE(params_.get());
|
|
|
| - socket_event_dispatcher_ = UDPSocketEventDispatcher::Get(GetProfile());
|
| + socket_event_dispatcher_ = UDPSocketEventDispatcher::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 "
|
|
|