summaryrefslogtreecommitdiffstats
path: root/chromium/chrome/browser/ui/webui/signin/enterprise_profile_welcome_ui.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/chrome/browser/ui/webui/signin/enterprise_profile_welcome_ui.h')
-rw-r--r--chromium/chrome/browser/ui/webui/signin/enterprise_profile_welcome_ui.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/chromium/chrome/browser/ui/webui/signin/enterprise_profile_welcome_ui.h b/chromium/chrome/browser/ui/webui/signin/enterprise_profile_welcome_ui.h
index 00b15ee9765..58b1015b893 100644
--- a/chromium/chrome/browser/ui/webui/signin/enterprise_profile_welcome_ui.h
+++ b/chromium/chrome/browser/ui/webui/signin/enterprise_profile_welcome_ui.h
@@ -44,11 +44,22 @@ class EnterpriseProfileWelcomeUI : public content::WebUIController {
EnterpriseProfileWelcomeUI& operator=(const EnterpriseProfileWelcomeUI&) =
delete;
- // Initializes the EnterpriseProfileWelcomeUI.
+
+ // Initializes the EnterpriseProfileWelcomeUI, which will obtain the user's
+ // choice about how to set up the profile with the new account.
+ // `proceed_callback` will be called when the user performs an action to exit
+ // the screen. Their choice will depend on other flags passed to this method.
+ // If `profile_creation_required_by_policy` is true, the wording of the dialog
+ // will tell the user that an admin requires a new profile for the account,
+ // otherwise the default wording will be used.
+ // `show_link_data_option` will make the screen display a checkbox, and when
+ // selected, will indicate that the user wants the current profile to be used
+ // as dedicated profile for the new account, linking the current data with
+ // synced data from the new account.
void Initialize(Browser* browser,
ScreenType type,
const AccountInfo& account_info,
- bool force_new_profile,
+ bool profile_creation_required_by_policy,
bool show_link_data_option,
absl::optional<SkColor> profile_color,
signin::SigninChoiceCallback proceed_callback);