chromium/chrome/browser/first_run/upgrade_util.cc

// Copyright 2011 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/first_run/upgrade_util.h"

#include <utility>

#include "base/command_line.h"
#include "base/functional/callback.h"
#include "base/logging.h"
#include "base/memory/ptr_util.h"
#include "build/build_config.h"
#include "content/public/browser/browser_thread.h"

namespace {

#if !BUILDFLAG(IS_MAC)
base::CommandLine* command_line =;
#endif

// A test seam for whole-browser tests to override browser relaunch.
upgrade_util::RelaunchChromeBrowserCallback*
    relaunch_chrome_browser_callback_for_testing =;

}  // namespace

namespace upgrade_util {

// Forward-declaration of the platform-specific implementation.
bool RelaunchChromeBrowserImpl(const base::CommandLine& command_line);

bool RelaunchChromeBrowser(const base::CommandLine& command_line) {}

#if !BUILDFLAG(IS_MAC)

void SetNewCommandLine(std::unique_ptr<base::CommandLine> new_command_line) {}

void RelaunchChromeBrowserWithNewCommandLineIfNeeded() {}

#endif  // !BUILDFLAG(IS_MAC)

RelaunchChromeBrowserCallback SetRelaunchChromeBrowserCallbackForTesting(
    RelaunchChromeBrowserCallback callback) {}

}  // namespace upgrade_util