Commit 7193c70b authored by Joshua Pawlicki's avatar Joshua Pawlicki Committed by Commit Bot

Remove --register command line flag.

Callers ought to call --install and then register over IPC.

Bug: 1131080
Change-Id: Iacdebfcc0eb8e1ebee8877459d83e06c819bef33
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2424149
Commit-Queue: Joshua Pawlicki <waffles@chromium.org>
Reviewed-by: default avatarSorin Jianu <sorin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#809814}
parent 735e1d74
......@@ -86,8 +86,6 @@ if (is_win || is_mac) {
"app/app.h",
"app/app_install.cc",
"app/app_install.h",
"app/app_register.cc",
"app/app_register.h",
"app/app_server.cc",
"app/app_server.h",
"app/app_uninstall.cc",
......
// Copyright 2020 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.
#ifndef CHROME_UPDATER_APP_APP_REGISTER_H_
#define CHROME_UPDATER_APP_APP_REGISTER_H_
#include "base/memory/scoped_refptr.h"
namespace updater {
class App;
scoped_refptr<App> MakeAppRegister();
} // namespace updater
#endif // CHROME_UPDATER_APP_APP_REGISTER_H_
......@@ -17,7 +17,6 @@ const char kComServiceSwitch[] = "com-service";
const char kCrashMeSwitch[] = "crash-me";
const char kCrashHandlerSwitch[] = "crash-handler";
const char kUpdateSwitch[] = "update";
const char kRegisterSwitch[] = "register";
const char kInstallSwitch[] = "install";
const char kUninstallSwitch[] = "uninstall";
const char kSystemSwitch[] = "system";
......
......@@ -63,9 +63,6 @@ extern const char kCrashHandlerSwitch[];
// Updates the updater.
extern const char kUpdateSwitch[];
// Registers an app with the updater. Installs the bundled updater if needed.
extern const char kRegisterSwitch[];
// Installs the updater.
extern const char kInstallSwitch[];
......
......@@ -13,7 +13,6 @@
#include "build/build_config.h"
#include "chrome/updater/app/app.h"
#include "chrome/updater/app/app_install.h"
#include "chrome/updater/app/app_register.h"
#include "chrome/updater/app/app_uninstall.h"
#include "chrome/updater/app/app_update.h"
#include "chrome/updater/app/app_wake.h"
......@@ -104,10 +103,6 @@ int HandleUpdaterCommands(const base::CommandLine* command_line) {
if (command_line->HasSwitch(kUpdateSwitch))
return MakeAppUpdate()->Run();
if (command_line->HasSwitch(kRegisterSwitch) &&
command_line->HasSwitch(kAppIdSwitch))
return MakeAppRegister()->Run();
#if defined(OS_WIN)
if (command_line->HasSwitch(kComServiceSwitch))
return ServiceMain::RunComService(command_line);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment