OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |