| Index: chrome/browser/extensions/api/tab_capture/tab_capture_registry.cc
|
| diff --git a/chrome/browser/extensions/api/tab_capture/tab_capture_registry.cc b/chrome/browser/extensions/api/tab_capture/tab_capture_registry.cc
|
| index 03420bf24b85ea1a00d588e55e8da448fa6e0ac3..997ccdeebb783921596bba62abb358645f70c6c2 100644
|
| --- a/chrome/browser/extensions/api/tab_capture/tab_capture_registry.cc
|
| +++ b/chrome/browser/extensions/api/tab_capture/tab_capture_registry.cc
|
| @@ -105,8 +105,8 @@ TabCaptureRequest::TabCaptureRequest(
|
| TabCaptureRequest::~TabCaptureRequest() {
|
| }
|
|
|
| -TabCaptureRegistry::TabCaptureRegistry(Profile* profile)
|
| - : profile_(profile) {
|
| +TabCaptureRegistry::TabCaptureRegistry(content::BrowserContext* context)
|
| + : profile_(Profile::FromBrowserContext(context)) {
|
| MediaCaptureDevicesDispatcher::GetInstance()->AddObserver(this);
|
| registrar_.Add(this,
|
| chrome::NOTIFICATION_EXTENSION_UNLOADED,
|
| @@ -121,8 +121,8 @@ TabCaptureRegistry::~TabCaptureRegistry() {
|
| }
|
|
|
| // static
|
| -TabCaptureRegistry* TabCaptureRegistry::Get(Profile* profile) {
|
| - return ProfileKeyedAPIFactory<TabCaptureRegistry>::GetForProfile(profile);
|
| +TabCaptureRegistry* TabCaptureRegistry::Get(content::BrowserContext* context) {
|
| + return ProfileKeyedAPIFactory<TabCaptureRegistry>::GetForProfile(context);
|
| }
|
|
|
| static base::LazyInstance<ProfileKeyedAPIFactory<TabCaptureRegistry> >
|
|
|