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

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: Extracting app_host_installer_impl_win.*; proposing simplified flow to switch between threads for A… 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/bind.h"
erikwright (departed) 2012/10/05 21:18:23 not required.
huangs 2012/10/07 01:42:25 Done.
8 #include "base/callback.h"
9 #include "base/compiler_specific.h"
erikwright (departed) 2012/10/05 21:18:23 not required
huangs 2012/10/07 01:42:25 Done.
10 #include "chrome/common/extensions/extension.h"
erikwright (departed) 2012/10/05 21:18:23 not required
huangs 2012/10/07 01:42:25 Done (forward declared).
11
12 #if defined(OS_WIN)
13 #include "chrome/browser/extensions/app_host_installer_impl_win.h"
14 #endif
15
16 namespace extensions {
17
18 AppHostInstaller::AppHostInstaller()
19 :
20 #if defined(OS_WIN)
21 impl_(new AppHostInstallerImpl()) {}
22 #else
23 impl_(0) {}
24 #endif
25
26 AppHostInstaller::~AppHostInstaller() {
27 if (impl_)
28 delete impl_;
29 }
30
31 void AppHostInstaller::InstallAppHostIfNecessary(
32 const Extension& extension,
33 const base::Callback<void(bool)>& completion_callback) {
34 #if defined(OS_WIN)
35 impl_->InstallAppHostIfNecessary(extension, completion_callback);
36 #else
37 completion_callback.Run(true);
38 #endif
39 }
40
41 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698