1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "apps/shell/browser/shell_apps_client.h"
7 #include "apps/app_window.h"
8 #include "apps/shell/browser/shell_app_window_delegate.h"
10 using content::BrowserContext;
14 ShellAppsClient::ShellAppsClient(BrowserContext* browser_context)
15 : browser_context_(browser_context) {}
17 ShellAppsClient::~ShellAppsClient() {}
19 std::vector<BrowserContext*> ShellAppsClient::GetLoadedBrowserContexts() {
20 std::vector<BrowserContext*> browser_contexts;
21 browser_contexts.push_back(browser_context_);
22 return browser_contexts;
25 bool ShellAppsClient::CheckAppLaunch(BrowserContext* context,
26 const extensions::Extension* extension) {
30 AppWindow* ShellAppsClient::CreateAppWindow(
31 BrowserContext* context,
32 const extensions::Extension* extension) {
33 return new AppWindow(context, new ShellAppWindowDelegate, extension);
36 void ShellAppsClient::IncrementKeepAliveCount() {}
38 void ShellAppsClient::DecrementKeepAliveCount() {}