| Index: chrome/browser/extensions/api/serial/serial_api.cc
|
| diff --git a/chrome/browser/extensions/api/serial/serial_api.cc b/chrome/browser/extensions/api/serial/serial_api.cc
|
| index cb5de19254338555872a9aff22b49b6c69c19f3d..eaffa4dbb443d258728602785f64176614218071 100644
|
| --- a/chrome/browser/extensions/api/serial/serial_api.cc
|
| +++ b/chrome/browser/extensions/api/serial/serial_api.cc
|
| @@ -56,7 +56,7 @@ SerialAsyncApiFunction::SerialAsyncApiFunction()
|
| SerialAsyncApiFunction::~SerialAsyncApiFunction() {}
|
|
|
| bool SerialAsyncApiFunction::PrePrepare() {
|
| - manager_ = ApiResourceManager<SerialConnection>::Get(GetProfile());
|
| + manager_ = ApiResourceManager<SerialConnection>::Get(context());
|
| DCHECK(manager_);
|
| return true;
|
| }
|
| @@ -134,7 +134,7 @@ bool SerialConnectFunction::Prepare() {
|
| if (options->stop_bits == serial::STOP_BITS_NONE)
|
| options->stop_bits = kDefaultStopBits;
|
|
|
| - serial_event_dispatcher_ = SerialEventDispatcher::Get(GetProfile());
|
| + serial_event_dispatcher_ = SerialEventDispatcher::Get(context());
|
| DCHECK(serial_event_dispatcher_);
|
|
|
| return true;
|
| @@ -297,7 +297,7 @@ bool SerialSetPausedFunction::Prepare() {
|
| params_ = serial::SetPaused::Params::Create(*args_);
|
| EXTENSION_FUNCTION_VALIDATE(params_.get());
|
|
|
| - serial_event_dispatcher_ = SerialEventDispatcher::Get(GetProfile());
|
| + serial_event_dispatcher_ = SerialEventDispatcher::Get(context());
|
| DCHECK(serial_event_dispatcher_);
|
| return true;
|
| }
|
|
|