Chromium Code Reviews| Index: apps/app_shim/extension_app_shim_handler_mac.cc |
| diff --git a/apps/app_shim/extension_app_shim_handler_mac.cc b/apps/app_shim/extension_app_shim_handler_mac.cc |
| index a45eccb775e605498d04f5c921e3a71cf4da1b64..e6126bf81be802cc61f86a57e3a0f65a1f29d93d 100644 |
| --- a/apps/app_shim/extension_app_shim_handler_mac.cc |
| +++ b/apps/app_shim/extension_app_shim_handler_mac.cc |
| @@ -183,6 +183,19 @@ void ExtensionAppShimHandler::QuitAppForWindow(ShellWindow* shell_window) { |
| } |
| } |
| +void ExtensionAppShimHandler::HideAppForWindow(ShellWindow* shell_window) { |
| + ExtensionAppShimHandler* handler = |
| + g_browser_process->platform_part()->app_shim_host_manager()-> |
| + extension_app_shim_handler(); |
| + Profile* profile = shell_window->profile(); |
| + Host* host = handler->FindHost(profile, shell_window->extension_id()); |
| + if (host) { |
|
tapted
2013/08/30 07:46:25
nit: no curlies
jackhou1
2013/09/03 01:20:49
Done.
|
| + host->OnAppHide(); |
| + } else { |
| + SetAppHidden(profile, shell_window->extension_id(), true); |
| + } |
| +} |
| + |
| // static |
| bool ExtensionAppShimHandler::RequestUserAttentionForWindow( |
| ShellWindow* shell_window) { |