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

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: Fixing crashing ExtensionServiceTest.LoadExtensionsWithPlugins unit test, caused by usage of const … 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(const Extension& extension,
erikwright (departed) 2012/10/24 15:33:28 same wrapping here.
huangs 2012/10/24 18:52:45 Done.
19 const base::Callback<void(bool)>& completion_callback) {
20 #if defined(OS_WIN)
21 if (extension.is_platform_app())
22 AppHostInstallerImpl::EnsureAppHostInstalled(completion_callback);
23 else
24 completion_callback.Run(true);
25 #else
26 completion_callback.Run(true);
27 #endif
28 }
29
30 } // namespace app_host_installer
31
32 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698