| 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 cb707ace3579d97b338f2f7b0fb2154e70a6504f..d6bc303e367d95814eed3b6adb231fdc69d6776f 100644
|
| --- a/chrome/browser/extensions/api/cast_channel/cast_channel_api.cc
|
| +++ b/chrome/browser/extensions/api/cast_channel/cast_channel_api.cc
|
| @@ -10,7 +10,6 @@
|
| #include "chrome/browser/browser_process.h"
|
| #include "chrome/browser/extensions/api/cast_channel/cast_socket.h"
|
| #include "chrome/browser/net/chrome_net_log.h"
|
| -#include "chrome/browser/profiles/profile.h"
|
| #include "content/public/browser/browser_thread.h"
|
| #include "extensions/browser/event_router.h"
|
| #include "extensions/browser/extension_system.h"
|
| @@ -113,7 +112,7 @@ CastChannelAsyncApiFunction::CastChannelAsyncApiFunction()
|
| CastChannelAsyncApiFunction::~CastChannelAsyncApiFunction() { }
|
|
|
| bool CastChannelAsyncApiFunction::PrePrepare() {
|
| - manager_ = ApiResourceManager<CastSocket>::Get(GetProfile());
|
| + manager_ = ApiResourceManager<CastSocket>::Get(browser_context());
|
| return true;
|
| }
|
|
|
| @@ -183,7 +182,7 @@ CastChannelOpenFunction::CastChannelOpenFunction()
|
| CastChannelOpenFunction::~CastChannelOpenFunction() { }
|
|
|
| bool CastChannelOpenFunction::PrePrepare() {
|
| - api_ = CastChannelAPI::Get(GetProfile());
|
| + api_ = CastChannelAPI::Get(browser_context());
|
| return CastChannelAsyncApiFunction::PrePrepare();
|
| }
|
|
|
|
|