- DCHECK(profile);
-
- ProfileInfoCache& info =
- g_browser_process->profile_manager()->GetProfileInfoCache();
- size_t info_index = info.GetIndexOfProfileWithPath(profile->GetPath());
- if (info_index == std::string::npos) {
- NOTREACHED(); // This should never happen but fail safely if it does.
- return false;
- }
- return ValidateLocalAuthCredentials(info_index, password);