| Index: apps/app_lifetime_monitor.cc
|
| diff --git a/apps/app_lifetime_monitor.cc b/apps/app_lifetime_monitor.cc
|
| index 41d7f6b0f25f734f909e30c34d92a54d5f8bba27..f2bb345e9be3d5c72b5215060f918c64bf5e35a3 100644
|
| --- a/apps/app_lifetime_monitor.cc
|
| +++ b/apps/app_lifetime_monitor.cc
|
| @@ -82,8 +82,8 @@ void AppLifetimeMonitor::OnShellWindowAdded(ShellWindow* shell_window) {
|
| return;
|
|
|
| ShellWindowRegistry::ShellWindowList windows =
|
| - ShellWindowRegistry::Get(shell_window->profile())->
|
| - GetShellWindowsForApp(shell_window->extension_id());
|
| + ShellWindowRegistry::Get(shell_window->browser_context())
|
| + ->GetShellWindowsForApp(shell_window->extension_id());
|
| if (windows.size() == 1)
|
| NotifyAppActivated(shell_window->extension_id());
|
| }
|
| @@ -92,8 +92,8 @@ void AppLifetimeMonitor::OnShellWindowIconChanged(ShellWindow* shell_window) {}
|
|
|
| void AppLifetimeMonitor::OnShellWindowRemoved(ShellWindow* shell_window) {
|
| ShellWindowRegistry::ShellWindowList windows =
|
| - ShellWindowRegistry::Get(shell_window->profile())->
|
| - GetShellWindowsForApp(shell_window->extension_id());
|
| + ShellWindowRegistry::Get(shell_window->browser_context())
|
| + ->GetShellWindowsForApp(shell_window->extension_id());
|
| if (windows.empty())
|
| NotifyAppDeactivated(shell_window->extension_id());
|
| }
|
|
|