| Index: chrome/browser/extensions/api/streams_private/streams_private_api.cc
|
| diff --git a/chrome/browser/extensions/api/streams_private/streams_private_api.cc b/chrome/browser/extensions/api/streams_private/streams_private_api.cc
|
| index 2d69b271de8b29777475330e8d864cdc8d35fd79..a4925e4b390618531665cda1532f7572554091f5 100644
|
| --- a/chrome/browser/extensions/api/streams_private/streams_private_api.cc
|
| +++ b/chrome/browser/extensions/api/streams_private/streams_private_api.cc
|
| @@ -29,15 +29,15 @@ const char kOnExecuteMimeTypeHandler[] =
|
| namespace extensions {
|
|
|
| // static
|
| -StreamsPrivateAPI* StreamsPrivateAPI::Get(Profile* profile) {
|
| - return GetFactoryInstance()->GetForProfile(profile);
|
| +StreamsPrivateAPI* StreamsPrivateAPI::Get(content::BrowserContext* context) {
|
| + return GetFactoryInstance()->GetForProfile(context);
|
| }
|
|
|
| -StreamsPrivateAPI::StreamsPrivateAPI(Profile* profile)
|
| - : profile_(profile),
|
| - weak_ptr_factory_(this) {
|
| - registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_UNLOADED,
|
| - content::Source<Profile>(profile));
|
| +StreamsPrivateAPI::StreamsPrivateAPI(content::BrowserContext* context)
|
| + : profile_(Profile::FromBrowserContext(context)), weak_ptr_factory_(this) {
|
| + registrar_.Add(this,
|
| + chrome::NOTIFICATION_EXTENSION_UNLOADED,
|
| + content::Source<Profile>(profile_));
|
| }
|
|
|
| StreamsPrivateAPI::~StreamsPrivateAPI() {
|
|
|