| 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..d9efa1f836713c019e68b93289b2b77e7623344e
|
| --- /dev/null
|
| +++ b/apps/shell/browser/shell_apps_client.cc
|
| @@ -0,0 +1,42 @@
|
| +// 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/shell/browser/shell_shell_window_delegate.h"
|
| +#include "apps/shell_window.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;
|
| +}
|
| +
|
| +ShellWindow* ShellAppsClient::CreateShellWindow(
|
| + BrowserContext* context,
|
| + const extensions::Extension* extension) {
|
| + return new ShellWindow(context, new ShellShellWindowDelegate, extension);
|
| +}
|
| +
|
| +void ShellAppsClient::StartKeepAlive() {
|
| +}
|
| +
|
| +void ShellAppsClient::EndKeepAlive() {
|
| +}
|
| +
|
| +} // namespace apps
|
|
|