| Index: chrome/browser/chromeos/login/login_utils.cc
|
| diff --git a/chrome/browser/chromeos/login/login_utils.cc b/chrome/browser/chromeos/login/login_utils.cc
|
| index cdf7261f9f759b8e9fd0a9ac9cd4c7e849471daa..7b98d441787a83513c9890107bc115fd591d86c6 100644
|
| --- a/chrome/browser/chromeos/login/login_utils.cc
|
| +++ b/chrome/browser/chromeos/login/login_utils.cc
|
| @@ -892,7 +892,8 @@ void LoginUtils::Set(LoginUtils* mock) {
|
| }
|
|
|
| // static
|
| -bool LoginUtils::IsWhitelisted(const std::string& username) {
|
| +bool LoginUtils::IsWhitelisted(const std::string& username,
|
| + bool* wildcard_match) {
|
| // Skip whitelist check for tests.
|
| if (CommandLine::ForCurrentProcess()->HasSwitch(
|
| chromeos::switches::kOobeSkipPostLogin)) {
|
| @@ -904,7 +905,8 @@ bool LoginUtils::IsWhitelisted(const std::string& username) {
|
| cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user);
|
| if (allow_new_user)
|
| return true;
|
| - return cros_settings->FindEmailInList(kAccountsPrefUsers, username);
|
| + return cros_settings->FindEmailInList(
|
| + kAccountsPrefUsers, username, wildcard_match);
|
| }
|
|
|
| } // namespace chromeos
|
|
|