[email protected] | 2381ed2 | 2012-01-26 04:05:29 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
[email protected] | 9de26c9b | 2011-04-18 22:32:18 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef CHROME_BROWSER_FIRST_RUN_FIRST_RUN_DIALOG_H_ |
| 6 | #define CHROME_BROWSER_FIRST_RUN_FIRST_RUN_DIALOG_H_ |
[email protected] | 9de26c9b | 2011-04-18 22:32:18 | [diff] [blame] | 7 | |
Trent Apted | 4d7d11d4 | 2017-11-17 07:42:51 | [diff] [blame^] | 8 | #include "base/callback_forward.h" |
| 9 | #include "build/build_config.h" |
| 10 | |
| 11 | // Hide this function on platforms where the dialog does not exist. |
| 12 | #if defined(OS_MACOSX) || (defined(OS_LINUX) && !defined(OS_CHROMEOS)) |
| 13 | |
[email protected] | 9de26c9b | 2011-04-18 22:32:18 | [diff] [blame] | 14 | class Profile; |
| 15 | |
| 16 | namespace first_run { |
| 17 | |
Trent Apted | 4d7d11d4 | 2017-11-17 07:42:51 | [diff] [blame^] | 18 | // Shows the first run dialog. Only called for organic first runs on Mac and |
| 19 | // desktop Linux official builds when metrics reporting is not already enabled. |
| 20 | // Invokes ChangeMetricsReportingState() if consent is given to enable crash |
| 21 | // reporting, and may initiate the flow to set the default browser. |
| 22 | void ShowFirstRunDialog(Profile* profile); |
| 23 | |
| 24 | // Returns a Closure invoked before calling ShowFirstRunDialog(). For testing. |
| 25 | base::OnceClosure& GetBeforeShowFirstRunDialogHookForTesting(); |
[email protected] | 9de26c9b | 2011-04-18 22:32:18 | [diff] [blame] | 26 | |
| 27 | } // namespace first_run |
| 28 | |
Trent Apted | 4d7d11d4 | 2017-11-17 07:42:51 | [diff] [blame^] | 29 | #endif // OS_MACOSX || DESKTOP_LINUX |
| 30 | |
[email protected] | 9de26c9b | 2011-04-18 22:32:18 | [diff] [blame] | 31 | #endif // CHROME_BROWSER_FIRST_RUN_FIRST_RUN_DIALOG_H_ |