#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
upgrade_util::RelaunchChromeBrowserCallback*
relaunch_chrome_browser_callback_for_testing = …;
}
namespace upgrade_util {
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
RelaunchChromeBrowserCallback SetRelaunchChromeBrowserCallbackForTesting(
RelaunchChromeBrowserCallback callback) { … }
}