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 namespace app_host_installer { | |
18 | |
19 void InstallAppHostIfNecessary(const Extension& extension, | |
20 const base::Callback<void(bool)>& completion_callback) { | |
21 #if defined(OS_WIN) | |
22 // The implementation. | |
erikwright (departed)
2012/10/09 19:24:48
Go ahead and do the is_platform_app() check here,
huangs
2012/10/09 21:09:15
Done.
| |
23 AppHostInstallerImpl* impl = new AppHostInstallerImpl(); | |
erikwright (departed)
2012/10/09 19:24:48
Make the constructor and destructor of AppHostInst
huangs
2012/10/09 21:09:15
Nice. Done.
| |
24 impl->InstallAppHostIfNecessary(extension, completion_callback); | |
25 // impl will handle its own destruction. | |
26 #else | |
27 completion_callback.Run(true); | |
28 #endif | |
29 } | |
30 | |
31 } // namespace app_host_installer | |
32 | |
33 } // namespace extensions | |
OLD | NEW |