| Index: chrome/browser/extensions/api/cast_channel/cast_channel_api.cc
|
| diff --git a/chrome/browser/extensions/api/cast_channel/cast_channel_api.cc b/chrome/browser/extensions/api/cast_channel/cast_channel_api.cc
|
| index e6dc135ff6dd428cf76f16442f9190065c396245..7dbde5d908dec3e0536c53de5e3d1a8cabb8e0b4 100644
|
| --- a/chrome/browser/extensions/api/cast_channel/cast_channel_api.cc
|
| +++ b/chrome/browser/extensions/api/cast_channel/cast_channel_api.cc
|
| @@ -112,7 +112,7 @@ CastChannelAsyncApiFunction::CastChannelAsyncApiFunction()
|
| CastChannelAsyncApiFunction::~CastChannelAsyncApiFunction() { }
|
|
|
| bool CastChannelAsyncApiFunction::PrePrepare() {
|
| - manager_ = ApiResourceManager<CastSocket>::Get(GetProfile());
|
| + manager_ = ApiResourceManager<CastSocket>::Get(context());
|
| return true;
|
| }
|
|
|
| @@ -182,7 +182,7 @@ CastChannelOpenFunction::CastChannelOpenFunction()
|
| CastChannelOpenFunction::~CastChannelOpenFunction() { }
|
|
|
| bool CastChannelOpenFunction::PrePrepare() {
|
| - api_ = CastChannelAPI::Get(GetProfile());
|
| + api_ = CastChannelAPI::Get(context());
|
| return CastChannelAsyncApiFunction::PrePrepare();
|
| }
|
|
|
|
|