| 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 "chrome/browser/ui/extensions/extension_install_ui_factory.h" |
| 6 |
| 7 #if defined(USE_ATHENA) |
| 8 #include "athena/extensions/public/extensions_delegate.h" |
| 9 #else |
| 10 #include "chrome/browser/ui/extensions/extension_install_ui_default.h" |
| 11 #endif |
| 12 |
| 13 namespace extensions { |
| 14 |
| 15 ExtensionInstallUI* CreateExtensionInstallUI(content::BrowserContext* context) { |
| 16 #if defined(USE_ATHENA) |
| 17 return athena::ExtensionsDelegate::Get(context)->CreateExtensionInstallUI(); |
| 18 #else |
| 19 return new ExtensionInstallUIDefault(context); |
| 20 #endif |
| 21 } |
| 22 |
| 23 } // namespace extensions |
| OLD | NEW |