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

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: Now installing App Host in AppShortcutManager, instead of CrxInstaller / UnpackedInstaller. Created 8 years, 1 month 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 #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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698