Commit f0167398 authored by Jan Krcal's avatar Jan Krcal Committed by Chromium LUCI CQ

[Profile creation] Skip FRE for signed-out profiles

This CL disables the FRE for profiles created through the updated
profile creation flow (as the user is presented with a very similar
sign-in promo in the flow).

Bug: 1115056
Change-Id: Iff161d371d32fc369a26a0a2e3f99daa2b1f8fb3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2624212
Auto-Submit: Jan Krcal <jkrcal@chromium.org>
Commit-Queue: Monica Basta <msalama@chromium.org>
Reviewed-by: default avatarMonica Basta <msalama@chromium.org>
Cr-Commit-Position: refs/heads/master@{#842644}
parent 9b5d1091
......@@ -28,6 +28,7 @@
#include "chrome/browser/ui/chrome_pages.h"
#include "chrome/browser/ui/profile_picker.h"
#include "chrome/browser/ui/signin/profile_colors_util.h"
#include "chrome/browser/ui/ui_features.h"
#include "chrome/browser/ui/user_manager.h"
#include "chrome/browser/ui/webui/profile_helper.h"
#include "chrome/browser/ui/webui/signin/login_ui_service.h"
......@@ -446,6 +447,11 @@ void ProfilePickerHandler::OnProfileCreationSuccess(
shortcut_manager->CreateProfileShortcut(profile->GetPath());
}
if (base::FeatureList::IsEnabled(features::kSignInProfileCreation)) {
// Skip the FRE for this profile if sign-in was offered as part of the flow.
profile->GetPrefs()->SetBoolean(prefs::kHasSeenWelcomePage, true);
}
RecordNewProfileSpec(profile_color, create_shortcut);
// Launch profile and close the picker.
profiles::OpenBrowserWindowForProfile(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment