Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(188)

Unified Diff: extensions/shell/browser/shell_apps_client.cc

Issue 543123004: Close AppWindow to perform clean shutdown (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@apifeatures
Patch Set: Add comments Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/shell/browser/desktop_controller.h ('k') | extensions/shell/browser/shell_desktop_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/shell/browser/shell_apps_client.cc
diff --git a/extensions/shell/browser/shell_apps_client.cc b/extensions/shell/browser/shell_apps_client.cc
index 94a525b1c4210ad29972e4c8ce9c46b257ad8156..bbb8386e76ef492d69d69bf493d61678ce1782f0 100644
--- a/extensions/shell/browser/shell_apps_client.cc
+++ b/extensions/shell/browser/shell_apps_client.cc
@@ -6,7 +6,6 @@
#include "extensions/browser/app_window/app_window.h"
#include "extensions/shell/browser/desktop_controller.h"
-#include "extensions/shell/browser/shell_app_delegate.h"
#include "extensions/shell/browser/shell_native_app_window.h"
namespace extensions {
@@ -25,7 +24,7 @@ ShellAppsClient::GetLoadedBrowserContexts() {
AppWindow* ShellAppsClient::CreateAppWindow(content::BrowserContext* context,
const Extension* extension) {
- return new AppWindow(context, new ShellAppDelegate, extension);
+ return DesktopController::instance()->CreateAppWindow(context, extension);
}
NativeAppWindow* ShellAppsClient::CreateNativeAppWindow(
« no previous file with comments | « extensions/shell/browser/desktop_controller.h ('k') | extensions/shell/browser/shell_desktop_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698