OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 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/extensions/app_host_installer.h" |
| 6 |
| 7 #include "base/callback.h" |
| 8 |
| 9 #if defined(OS_WIN) |
| 10 #include "chrome/browser/extensions/app_host_installer_impl_win.h" |
| 11 #endif |
| 12 |
| 13 namespace extensions { |
| 14 |
| 15 class Extension; |
| 16 |
| 17 AppHostInstaller::AppHostInstaller() {} |
| 18 |
| 19 void AppHostInstaller::InstallAppHostIfNecessary( |
| 20 const Extension& extension, |
| 21 const base::Callback<void(bool)>& completion_callback) { |
| 22 #if defined(OS_WIN) |
| 23 // The implementation. |
| 24 AppHostInstallerImpl* impl = new AppHostInstallerImpl(); |
| 25 impl->InstallAppHostIfNecessary(extension, completion_callback); |
| 26 // impl will handle its own destruction. |
| 27 #else |
| 28 completion_callback.Run(true); |
| 29 #endif |
| 30 } |
| 31 |
| 32 } // namespace extensions |
OLD | NEW |