| Index: trunk/src/apps/app_shim/extension_app_shim_handler_mac.cc
|
| ===================================================================
|
| --- trunk/src/apps/app_shim/extension_app_shim_handler_mac.cc (revision 251111)
|
| +++ trunk/src/apps/app_shim/extension_app_shim_handler_mac.cc (working copy)
|
| @@ -230,14 +230,16 @@
|
| ExtensionAppShimHandler* handler =
|
| g_browser_process->platform_part()->app_shim_host_manager()->
|
| extension_app_shim_handler();
|
| - Host* host = handler->FindHost(shell_window->profile(),
|
| - shell_window->extension_id());
|
| + Host* host = handler->FindHost(
|
| + Profile::FromBrowserContext(shell_window->browser_context()),
|
| + shell_window->extension_id());
|
| if (host) {
|
| handler->OnShimQuit(host);
|
| } else {
|
| // App shims might be disabled or the shim is still starting up.
|
| - ShellWindowRegistry::Get(shell_window->profile())->
|
| - CloseAllShellWindowsForApp(shell_window->extension_id());
|
| + ShellWindowRegistry::Get(
|
| + Profile::FromBrowserContext(shell_window->browser_context()))
|
| + ->CloseAllShellWindowsForApp(shell_window->extension_id());
|
| }
|
| }
|
|
|
| @@ -245,7 +247,8 @@
|
| ExtensionAppShimHandler* handler =
|
| g_browser_process->platform_part()->app_shim_host_manager()->
|
| extension_app_shim_handler();
|
| - Profile* profile = shell_window->profile();
|
| + Profile* profile =
|
| + Profile::FromBrowserContext(shell_window->browser_context());
|
| Host* host = handler->FindHost(profile, shell_window->extension_id());
|
| if (host)
|
| host->OnAppHide();
|
| @@ -258,7 +261,8 @@
|
| ExtensionAppShimHandler* handler =
|
| g_browser_process->platform_part()->app_shim_host_manager()->
|
| extension_app_shim_handler();
|
| - Profile* profile = shell_window->profile();
|
| + Profile* profile =
|
| + Profile::FromBrowserContext(shell_window->browser_context());
|
| const std::string& app_id = shell_window->extension_id();
|
| Host* host = handler->FindHost(profile, app_id);
|
| if (host) {
|
| @@ -277,7 +281,8 @@
|
| ExtensionAppShimHandler* handler =
|
| g_browser_process->platform_part()->app_shim_host_manager()->
|
| extension_app_shim_handler();
|
| - Profile* profile = shell_window->profile();
|
| + Profile* profile =
|
| + Profile::FromBrowserContext(shell_window->browser_context());
|
| Host* host = handler->FindHost(profile, shell_window->extension_id());
|
| if (host) {
|
| // Bring the window to the front without showing it.
|
|
|