OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 #include "apps/shell/browser/shell_apps_client.h" |
| 6 |
| 7 #include "apps/app_window.h" |
| 8 #include "apps/shell/browser/shell_shell_window_delegate.h" |
| 9 |
| 10 using content::BrowserContext; |
| 11 |
| 12 namespace apps { |
| 13 |
| 14 ShellAppsClient::ShellAppsClient(BrowserContext* browser_context) |
| 15 : browser_context_(browser_context) {} |
| 16 |
| 17 ShellAppsClient::~ShellAppsClient() {} |
| 18 |
| 19 std::vector<BrowserContext*> ShellAppsClient::GetLoadedBrowserContexts() { |
| 20 std::vector<BrowserContext*> browser_contexts; |
| 21 browser_contexts.push_back(browser_context_); |
| 22 return browser_contexts; |
| 23 } |
| 24 |
| 25 bool ShellAppsClient::CheckAppLaunch(BrowserContext* context, |
| 26 const extensions::Extension* extension) { |
| 27 return true; |
| 28 } |
| 29 |
| 30 AppWindow* ShellAppsClient::CreateAppWindow( |
| 31 BrowserContext* context, |
| 32 const extensions::Extension* extension) { |
| 33 return new AppWindow(context, new ShellShellWindowDelegate, extension); |
| 34 } |
| 35 |
| 36 void ShellAppsClient::StartKeepAlive() {} |
| 37 |
| 38 void ShellAppsClient::EndKeepAlive() {} |
| 39 |
| 40 } // namespace apps |
OLD | NEW |