| Index: chrome/browser/chromeos/extensions/screenlock_private_api.cc
|
| diff --git a/chrome/browser/chromeos/extensions/screenlock_private_api.cc b/chrome/browser/chromeos/extensions/screenlock_private_api.cc
|
| index c009fce65dd2142f6260c1ac887a017abaa431a0..74bbcc8287352463a35c50317fd99d1b8e9fad71 100644
|
| --- a/chrome/browser/chromeos/extensions/screenlock_private_api.cc
|
| +++ b/chrome/browser/chromeos/extensions/screenlock_private_api.cc
|
| @@ -12,6 +12,7 @@
|
| #include "chromeos/dbus/dbus_thread_manager.h"
|
| #include "extensions/browser/event_router.h"
|
| #include "extensions/browser/extension_system.h"
|
| +#include "ui/gfx/image/image.h"
|
|
|
| namespace screenlock = extensions::api::screenlock_private;
|
|
|
| @@ -110,8 +111,9 @@ void ScreenlockPrivateShowButtonFunction::OnImageLoaded(
|
| SendResponse(error_.empty());
|
| }
|
|
|
| -ScreenlockPrivateEventRouter::ScreenlockPrivateEventRouter(Profile* profile)
|
| - : profile_(profile) {
|
| +ScreenlockPrivateEventRouter::ScreenlockPrivateEventRouter(
|
| + content::BrowserContext* context)
|
| + : browser_context_(context) {
|
| chromeos::SessionManagerClient* session_manager =
|
| chromeos::DBusThreadManager::Get()->GetSessionManagerClient();
|
| if (!session_manager->HasObserver(this))
|
| @@ -138,8 +140,9 @@ void ScreenlockPrivateEventRouter::DispatchEvent(
|
| args->Append(arg);
|
| scoped_ptr<extensions::Event> event(new extensions::Event(
|
| event_name, args.Pass()));
|
| - extensions::ExtensionSystem::Get(profile_)->event_router()->
|
| - BroadcastEvent(event.Pass());
|
| + extensions::ExtensionSystem::Get(browser_context_)
|
| + ->event_router()
|
| + ->BroadcastEvent(event.Pass());
|
| }
|
|
|
| static base::LazyInstance<extensions::ProfileKeyedAPIFactory<
|
|
|