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

Unified Diff: chrome/browser/extensions/app_host_stub_main.cc

Issue 10825364: Upon execution of the App Host, ask Omaha to install the Chrome Binaries if they are not present on… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More wood behind fewer return statements. Created 8 years, 4 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_stub_main.cc
diff --git a/chrome/browser/extensions/app_host_stub_main.cc b/chrome/browser/extensions/app_host_stub_main.cc
deleted file mode 100644
index 291b1cedb8a5607849da976d80aec2d4733b4428..0000000000000000000000000000000000000000
--- a/chrome/browser/extensions/app_host_stub_main.cc
+++ /dev/null
@@ -1,45 +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 "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/installer/launcher_support/chrome_launcher_support.h"
-
-namespace {
-
-const wchar_t kChromeExe[] = L"chrome.exe";
-
-} // namespace
-
-int main(int /* argc */, char* /* argv[] */) {
- base::AtExitManager exit_manager;
-
- // Initialize the commandline singleton from the environment.
- CommandLine::Init(0, NULL);
-
- FilePath chrome_exe(chrome_launcher_support::GetAnyChromePath());
-
- if (chrome_exe.empty()) {
- LOG(ERROR) << "No Chrome executable could be found.";
- // TODO(erikwright): install Chrome.
- return 1;
- }
-
- CommandLine chrome_exe_command_line(chrome_exe);
- chrome_exe_command_line.AppendArguments(
- *CommandLine::ForCurrentProcess(), false);
-
- if (base::LaunchProcess(chrome_exe_command_line,
- base::LaunchOptions(),
- NULL)) {
- LOG(INFO) << "Delegated to Chrome executable at " << chrome_exe.value();
- return 0;
- } else {
- LOG(INFO) << "Failed to launch Chrome executable at " << chrome_exe.value();
- return 1;
- }
-}

Powered by Google App Engine
This is Rietveld 408576698