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

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

Issue 171523005: BACKUP: NativeAppWindowView - before splitting CL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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..96328a324cec8ab4b359d15b3076d48a14aa145e 100644
--- a/chrome/browser/apps/chrome_apps_client.cc
+++ b/chrome/browser/apps/chrome_apps_client.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/apps/chrome_apps_client.h"
+#include "apps/app_window.h"
#include "base/memory/singleton.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/profiles/profile_manager.h"
@@ -14,6 +15,13 @@
#include "win8/util/win8_util.h"
#endif
+// TODO(jamescook): We probably shouldn't compile this class at all on Android.
+// See http://crbug.com/343612
+#if !defined(OS_ANDROID)
+#include "chrome/browser/lifetime/application_lifetime.h"
+#include "chrome/browser/ui/apps/chrome_app_window_delegate.h"
+#endif
+
ChromeAppsClient::ChromeAppsClient() {}
ChromeAppsClient::~ChromeAppsClient() {}
@@ -47,3 +55,26 @@ bool ChromeAppsClient::CheckAppLaunch(content::BrowserContext* context,
#endif
return true;
}
+
+apps::AppWindow* ChromeAppsClient::CreateAppWindow(
+ content::BrowserContext* context,
+ const extensions::Extension* extension) {
+#if defined(OS_ANDROID)
+ return NULL;
+#else
+ return new apps::AppWindow(
+ context, new ChromeAppWindowDelegate, extension);
+#endif
+}
+
+void ChromeAppsClient::StartKeepAlive() {
+#if !defined(OS_ANDROID)
+ chrome::StartKeepAlive();
+#endif
+}
+
+void ChromeAppsClient::EndKeepAlive() {
+#if !defined(OS_ANDROID)
+ chrome::EndKeepAlive();
+#endif
+}
« no previous file with comments | « chrome/browser/apps/chrome_apps_client.h ('k') | chrome/browser/extensions/api/app_window/app_window_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698