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

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: Making AppHostInstallerImpl() manage its own destruction. 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 AppHostInstaller::AppHostInstaller() {}
18
19 void AppHostInstaller::InstallAppHostIfNecessary(
20 const Extension& extension,
21 const base::Callback<void(bool)>& completion_callback) {
22 #if defined(OS_WIN)
23 // The implementation.
24 AppHostInstallerImpl* impl = new AppHostInstallerImpl();
25 impl->InstallAppHostIfNecessary(extension, completion_callback);
26 // impl will handle its own destruction.
27 #else
28 completion_callback.Run(true);
29 #endif
30 }
31
32 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698