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) | |
benwells
2012/11/01 23:11:46
I think this platform specific pattern is a little
erikwright (departed)
2012/11/02 01:07:26
By default, I think x_win.cc will only be built on
benwells
2012/11/02 01:29:25
Yes, x_win.cc is only built on Windows. You do not
huangs
2012/11/02 18:39:01
Done. So:
-- app_host_installer.cc
-- app_host_in
| |
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 |