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

#ifndef CHROME_BROWSER_FIRST_RUN_FIRST_RUN_DIALOG_H_
#define CHROME_BROWSER_FIRST_RUN_FIRST_RUN_DIALOG_H_

#include "base/functional/callback_forward.h"
#include "build/build_config.h"

// Hide this function on platforms where the dialog does not exist.
#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX)

namespace first_run {

// Shows the first run dialog. Only called for organic first runs on Mac and
// desktop Linux official builds when metrics reporting is not already enabled.
// Invokes metrics::ChangeMetricsReportingState() if consent is given to enable
// crash reporting, and may initiate the flow to set the default browser.
void ShowFirstRunDialog();

// Returns a Closure invoked before calling ShowFirstRunDialog(). For testing.
base::OnceClosure& GetBeforeShowFirstRunDialogHookForTesting();

}  // namespace first_run

#endif  // BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX)

#endif  // CHROME_BROWSER_FIRST_RUN_FIRST_RUN_DIALOG_H_
