Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Side by Side Diff: chrome/browser/extensions/app_host_installer.cc

Issue 11054006: Make application shortcuts point to app_host.exe, install App Host during app installation. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Changing code entry from class to function. Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698