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

Unified Diff: apps/shell/browser/shell_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
« no previous file with comments | « apps/shell/browser/shell_apps_client.h ('k') | apps/shell/browser/shell_browser_main_parts.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/shell/browser/shell_apps_client.cc
diff --git a/apps/shell/browser/shell_apps_client.cc b/apps/shell/browser/shell_apps_client.cc
new file mode 100644
index 0000000000000000000000000000000000000000..b2a4fa3a471f2880da0ac6a9d4088de006acdbf5
--- /dev/null
+++ b/apps/shell/browser/shell_apps_client.cc
@@ -0,0 +1,40 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "apps/shell/browser/shell_apps_client.h"
+
+#include "apps/app_window.h"
+#include "apps/shell/browser/shell_shell_window_delegate.h"
+
+using content::BrowserContext;
+
+namespace apps {
+
+ShellAppsClient::ShellAppsClient(BrowserContext* browser_context)
+ : browser_context_(browser_context) {}
+
+ShellAppsClient::~ShellAppsClient() {}
+
+std::vector<BrowserContext*> ShellAppsClient::GetLoadedBrowserContexts() {
+ std::vector<BrowserContext*> browser_contexts;
+ browser_contexts.push_back(browser_context_);
+ return browser_contexts;
+}
+
+bool ShellAppsClient::CheckAppLaunch(BrowserContext* context,
+ const extensions::Extension* extension) {
+ return true;
+}
+
+AppWindow* ShellAppsClient::CreateAppWindow(
+ BrowserContext* context,
+ const extensions::Extension* extension) {
+ return new AppWindow(context, new ShellShellWindowDelegate, extension);
+}
+
+void ShellAppsClient::StartKeepAlive() {}
+
+void ShellAppsClient::EndKeepAlive() {}
+
+} // namespace apps
« no previous file with comments | « apps/shell/browser/shell_apps_client.h ('k') | apps/shell/browser/shell_browser_main_parts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698