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

Side by Side Diff: apps/app_host/app_host_main.cc

Issue 12310059: Move app_host target from c/b/extensions into src/apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « apps/app_host/app_host.rc ('k') | apps/app_host/app_host_resource.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <windows.h> 5 #include <windows.h>
6 6
7 #include "apps/app_host/binaries_installer.h"
8 #include "apps/app_host/update.h"
7 #include "base/at_exit.h" 9 #include "base/at_exit.h"
8 #include "base/command_line.h" 10 #include "base/command_line.h"
9 #include "base/file_path.h" 11 #include "base/file_path.h"
10 #include "base/logging.h" 12 #include "base/logging.h"
11 #include "base/process_util.h" 13 #include "base/process_util.h"
12 #include "chrome/browser/extensions/app_host/binaries_installer.h"
13 #include "chrome/browser/extensions/app_host/update.h"
14 #include "chrome/installer/launcher_support/chrome_launcher_support.h" 14 #include "chrome/installer/launcher_support/chrome_launcher_support.h"
15 15
16 int APIENTRY wWinMain(HINSTANCE, HINSTANCE, wchar_t*, int) { 16 int APIENTRY wWinMain(HINSTANCE, HINSTANCE, wchar_t*, int) {
17 base::AtExitManager exit_manager; 17 base::AtExitManager exit_manager;
18 18
19 // Initialize the commandline singleton from the environment. 19 // Initialize the commandline singleton from the environment.
20 CommandLine::Init(0, NULL); 20 CommandLine::Init(0, NULL);
21 21
22 base::FilePath chrome_exe(chrome_launcher_support::GetAnyChromePath()); 22 base::FilePath chrome_exe(chrome_launcher_support::GetAnyChromePath());
23 if (chrome_exe.empty()) { 23 if (chrome_exe.empty()) {
(...skipping 20 matching lines...) Expand all
44 base::LaunchOptions(), NULL); 44 base::LaunchOptions(), NULL);
45 if (launch_result) 45 if (launch_result)
46 LOG(INFO) << "Delegated to Chrome executable at " << chrome_exe.value(); 46 LOG(INFO) << "Delegated to Chrome executable at " << chrome_exe.value();
47 else 47 else
48 LOG(INFO) << "Failed to launch Chrome executable at " << chrome_exe.value(); 48 LOG(INFO) << "Failed to launch Chrome executable at " << chrome_exe.value();
49 49
50 app_host::EnsureAppHostUpToDate(); 50 app_host::EnsureAppHostUpToDate();
51 51
52 return !launch_result; 52 return !launch_result;
53 } 53 }
OLDNEW
« no previous file with comments | « apps/app_host/app_host.rc ('k') | apps/app_host/app_host_resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698