| Index: apps/shell/browser/shell_extension_system.cc
|
| diff --git a/apps/shell/browser/shell_extension_system.cc b/apps/shell/browser/shell_extension_system.cc
|
| index 549931abc800b0f0f8919bd0f362cd1a8b532917..6defb0edaff34d5677fd624150405aa3bc73248d 100644
|
| --- a/apps/shell/browser/shell_extension_system.cc
|
| +++ b/apps/shell/browser/shell_extension_system.cc
|
| @@ -6,6 +6,7 @@
|
|
|
| #include <string>
|
|
|
| +#include "apps/app_window_registry.h"
|
| #include "base/command_line.h"
|
| #include "base/files/file_path.h"
|
| #include "chrome/browser/chrome_notification_types.h"
|
| @@ -48,6 +49,7 @@ bool ShellExtensionSystem::LoadAndLaunchApp(const base::FilePath& app_dir) {
|
| << " failed with: " << load_error;
|
| return false;
|
| }
|
| + app_id_ = extension->id();
|
|
|
| // TODO(jamescook): We may want to do some of these things here:
|
| // * Create a PermissionsUpdater.
|
| @@ -86,6 +88,11 @@ bool ShellExtensionSystem::LoadAndLaunchApp(const base::FilePath& app_dir) {
|
| return true;
|
| }
|
|
|
| +void ShellExtensionSystem::CloseApp() {
|
| + apps::AppWindowRegistry::Get(browser_context_)
|
| + ->CloseAllAppWindowsForApp(app_id_);
|
| +}
|
| +
|
| void ShellExtensionSystem::Shutdown() {
|
| }
|
|
|
|
|