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 "athena/extensions/public/extensions_delegate.h" |
| 6 #include "base/macros.h" |
| 7 #include "extensions/common/extension_set.h" |
| 8 |
| 9 namespace athena { |
| 10 namespace { |
| 11 |
| 12 class TestExtensionsDelegate : public ExtensionsDelegate { |
| 13 public: |
| 14 TestExtensionsDelegate() {} |
| 15 |
| 16 virtual ~TestExtensionsDelegate() {} |
| 17 |
| 18 private: |
| 19 // ExtensionsDelegate: |
| 20 virtual content::BrowserContext* GetBrowserContext() const OVERRIDE { |
| 21 return NULL; |
| 22 } |
| 23 virtual const extensions::ExtensionSet& GetInstalledExtensions() OVERRIDE { |
| 24 return shell_extensions_; |
| 25 } |
| 26 virtual void LaunchApp(const std::string& app_id) OVERRIDE {} |
| 27 |
| 28 extensions::ExtensionSet shell_extensions_; |
| 29 |
| 30 DISALLOW_COPY_AND_ASSIGN(TestExtensionsDelegate); |
| 31 }; |
| 32 |
| 33 } // namespace |
| 34 |
| 35 // static |
| 36 void ExtensionsDelegate::CreateExtensionsDelegateForTest() { |
| 37 new TestExtensionsDelegate(); |
| 38 } |
| 39 |
| 40 } // namespace athena |
OLD | NEW |