[OIDC Enrollment][UX] Add special error dialog for when browser sign in is disabled
Current the error dialog from OIDC enrollment flow suggests the user to
try again or contact admin. However, when the flow fails due to sign in
being disabled, trying again will not help. So we are adding a better
message in this special failure case and try to point the user to the
correct admin for resolution.
Bug: 383373356
Change-Id: I1daf72395f47d7a9f0514a5b9b50dcbc23484e58
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6102292
Reviewed-by: David Roger <[email protected]>
Reviewed-by: Owen Min <[email protected]>
Commit-Queue: Zonghan Xu <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1411701}
diff --git a/chrome/browser/enterprise/profile_management/profile_management_features.h b/chrome/browser/enterprise/profile_management/profile_management_features.h
index 375b210..a9127ab 100644
--- a/chrome/browser/enterprise/profile_management/profile_management_features.h
+++ b/chrome/browser/enterprise/profile_management/profile_management_features.h
@@ -45,7 +45,7 @@
extern const base::FeatureParam<std::string> kOidcAuthStubUserName;
extern const base::FeatureParam<std::string> kOidcAuthStubUserEmail;
extern const base::FeatureParam<bool> kOidcAuthIsDasherBased;
-extern const base::FeatureParam<bool> kOidcAuthForceErrorUi;
+extern const base::FeatureParam<int> kOidcAuthForceErrorUi;
extern const base::FeatureParam<bool> kOidcAuthForceTimeoutUi;
extern const base::FeatureParam<base::TimeDelta> kOidcEnrollRegistrationTimeout;