| Index: chrome/browser/extensions/api/app_window/app_window_api.cc
|
| diff --git a/chrome/browser/extensions/api/app_window/app_window_api.cc b/chrome/browser/extensions/api/app_window/app_window_api.cc
|
| index b709e6b4d189e81a3a0656d6be60035f8bf35d7d..95d5b01b22da4ec4acd4643a315b865fa296821a 100644
|
| --- a/chrome/browser/extensions/api/app_window/app_window_api.cc
|
| +++ b/chrome/browser/extensions/api/app_window/app_window_api.cc
|
| @@ -5,6 +5,7 @@
|
| #include "chrome/browser/extensions/api/app_window/app_window_api.h"
|
|
|
| #include "apps/app_window_contents.h"
|
| +#include "apps/apps_client.h"
|
| #include "apps/shell_window.h"
|
| #include "apps/shell_window_registry.h"
|
| #include "apps/ui/native_app_window.h"
|
| @@ -15,7 +16,6 @@
|
| #include "chrome/browser/devtools/devtools_window.h"
|
| #include "chrome/browser/extensions/window_controller.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| -#include "chrome/browser/ui/apps/chrome_shell_window_delegate.h"
|
| #include "chrome/common/extensions/api/app_window.h"
|
| #include "chrome/common/extensions/features/feature_channel.h"
|
| #include "content/public/browser/notification_registrar.h"
|
| @@ -265,8 +265,8 @@ bool AppWindowCreateFunction::RunImpl() {
|
| create_params.creator_process_id =
|
| render_view_host_->GetProcess()->GetID();
|
|
|
| - ShellWindow* shell_window = new ShellWindow(
|
| - GetProfile(), new ChromeShellWindowDelegate(), GetExtension());
|
| + ShellWindow* shell_window =
|
| + apps::AppsClient::Get()->CreateShellWindow(GetProfile(), GetExtension());
|
| shell_window->Init(url,
|
| new apps::AppWindowContents(shell_window),
|
| create_params);
|
|
|