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 8015f69d755f16a373933769e8641ebf874df3b2..f61ec678b25ee7b500388bf676b708959b6ffd49 100644 |
--- a/chrome/browser/extensions/api/app_window/app_window_api.cc |
+++ b/chrome/browser/extensions/api/app_window/app_window_api.cc |
@@ -7,6 +7,7 @@ |
#include "apps/app_window.h" |
#include "apps/app_window_contents.h" |
#include "apps/app_window_registry.h" |
+#include "apps/apps_client.h" |
#include "apps/ui/native_app_window.h" |
#include "base/command_line.h" |
#include "base/time/time.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_app_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(); |
- AppWindow* app_window = new AppWindow( |
- GetProfile(), new ChromeAppWindowDelegate(), GetExtension()); |
+ AppWindow* app_window = |
+ apps::AppsClient::Get()->CreateAppWindow(GetProfile(), GetExtension()); |
app_window->Init( |
url, new apps::AppWindowContentsImpl(app_window), create_params); |