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

Unified Diff: chrome/browser/extensions/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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/app_host/app_host_main.cc
diff --git a/chrome/browser/extensions/app_host/app_host_main.cc b/chrome/browser/extensions/app_host/app_host_main.cc
deleted file mode 100644
index 578f18ecc673ed85ddf8c2e20279361acc9fa0c0..0000000000000000000000000000000000000000
--- a/chrome/browser/extensions/app_host/app_host_main.cc
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include <windows.h>
-
-#include "base/at_exit.h"
-#include "base/command_line.h"
-#include "base/file_path.h"
-#include "base/logging.h"
-#include "base/process_util.h"
-#include "chrome/browser/extensions/app_host/binaries_installer.h"
-#include "chrome/browser/extensions/app_host/update.h"
-#include "chrome/installer/launcher_support/chrome_launcher_support.h"
-
-int APIENTRY wWinMain(HINSTANCE, HINSTANCE, wchar_t*, int) {
- base::AtExitManager exit_manager;
-
- // Initialize the commandline singleton from the environment.
- CommandLine::Init(0, NULL);
-
- base::FilePath chrome_exe(chrome_launcher_support::GetAnyChromePath());
- if (chrome_exe.empty()) {
- LOG(INFO) << "No Chrome executable could be found. Let's install it.";
- HRESULT hr = app_host::InstallBinaries();
- if (FAILED(hr)) {
- LOG(ERROR) << "Failed to install the Chrome Binaries. Error: " << hr;
- return 1;
- } else {
- chrome_exe = chrome_launcher_support::GetAnyChromePath();
- if (chrome_exe.empty()) {
- LOG(ERROR) << "Failed to find the Chrome Binaries despite a "
- << "'successful' installation.";
- return 1;
- }
- }
- }
-
- CommandLine chrome_exe_command_line(chrome_exe);
- chrome_exe_command_line.AppendArguments(
- *CommandLine::ForCurrentProcess(), false);
- // Launch Chrome before checking for update, for faster user experience.
- bool launch_result = base::LaunchProcess(chrome_exe_command_line,
- base::LaunchOptions(), NULL);
- if (launch_result)
- LOG(INFO) << "Delegated to Chrome executable at " << chrome_exe.value();
- else
- LOG(INFO) << "Failed to launch Chrome executable at " << chrome_exe.value();
-
- app_host::EnsureAppHostUpToDate();
-
- return !launch_result;
-}
« no previous file with comments | « chrome/browser/extensions/app_host/app_host.rc ('k') | chrome/browser/extensions/app_host/app_host_resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698