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

Unified Diff: chrome/browser/apps/chrome_apps_client.cc

Issue 145723011: Add a specialized apps::NativeAppWindow for app_shell (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: similarity Created 6 years, 10 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
Index: chrome/browser/apps/chrome_apps_client.cc
diff --git a/chrome/browser/apps/chrome_apps_client.cc b/chrome/browser/apps/chrome_apps_client.cc
index 25d215365a02aee6058253bc2dc8fd995b085e36..8492f2eed9982d0b92e604c90e63f10d45c84284 100644
--- a/chrome/browser/apps/chrome_apps_client.cc
+++ b/chrome/browser/apps/chrome_apps_client.cc
@@ -4,10 +4,13 @@
#include "chrome/browser/apps/chrome_apps_client.h"
+#include "apps/shell_window.h"
#include "base/memory/singleton.h"
#include "chrome/browser/browser_process.h"
+#include "chrome/browser/lifetime/application_lifetime.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/ui/apps/app_metro_infobar_delegate_win.h"
+#include "chrome/browser/ui/apps/chrome_shell_window_delegate.h"
#include "extensions/common/extension.h"
#if defined(OS_WIN)
@@ -47,3 +50,18 @@ bool ChromeAppsClient::CheckAppLaunch(content::BrowserContext* context,
#endif
return true;
}
+
+apps::ShellWindow* ChromeAppsClient::CreateShellWindow(
+ content::BrowserContext* context,
+ const extensions::Extension* extension) {
+ return new apps::ShellWindow(
+ context, new ChromeShellWindowDelegate, extension);
+}
+
+void ChromeAppsClient::StartKeepAlive() {
+ chrome::StartKeepAlive();
+}
+
+void ChromeAppsClient::EndKeepAlive() {
+ chrome::EndKeepAlive();
+}

Powered by Google App Engine
This is Rietveld 408576698