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 #include "chrome/common/extensions/extension.h" |
| 7 |
| 8 #include "base/callback.h" |
| 9 |
| 10 #if defined(OS_WIN) |
| 11 #include "chrome/browser/extensions/app_host_installer_impl_win.h" |
| 12 #endif |
| 13 |
| 14 namespace extensions { |
| 15 |
| 16 namespace app_host_installer { |
| 17 |
| 18 void InstallAppHostIfNecessary( |
| 19 const Extension& extension, |
| 20 const OnAppHostInstallationCompleteCallback& completion_callback) { |
| 21 #if defined(OS_WIN) |
| 22 if (extension.is_platform_app()) |
| 23 AppHostInstallerImpl::EnsureAppHostInstalled(completion_callback); |
| 24 else |
| 25 completion_callback.Run(true); |
| 26 #else |
| 27 completion_callback.Run(true); |
| 28 #endif |
| 29 } |
| 30 |
| 31 } // namespace app_host_installer |
| 32 |
| 33 } // namespace extensions |
OLD | NEW |