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(const Extension& extension, | |
erikwright (departed)
2012/10/24 15:33:28
same wrapping here.
huangs
2012/10/24 18:52:45
Done.
| |
19 const base::Callback<void(bool)>& completion_callback) { | |
20 #if defined(OS_WIN) | |
21 if (extension.is_platform_app()) | |
22 AppHostInstallerImpl::EnsureAppHostInstalled(completion_callback); | |
23 else | |
24 completion_callback.Run(true); | |
25 #else | |
26 completion_callback.Run(true); | |
27 #endif | |
28 } | |
29 | |
30 } // namespace app_host_installer | |
31 | |
32 } // namespace extensions | |
OLD | NEW |