| Index: chrome/browser/profiles/profiles_state.cc
|
| diff --git a/chrome/browser/profiles/profiles_state.cc b/chrome/browser/profiles/profiles_state.cc
|
| index e3acad3245bcec2402530d7f62da5aba6b7dbbf0..3cfa03ca464408ba6dd74ad84cc9d0210f1580ad 100644
|
| --- a/chrome/browser/profiles/profiles_state.cc
|
| +++ b/chrome/browser/profiles/profiles_state.cc
|
| @@ -215,9 +215,9 @@ bool SetActiveProfileToGuestIfLocked() {
|
| bool has_entry =
|
| g_browser_process->profile_manager()->GetProfileAttributesStorage().
|
| GetProfileAttributesWithPath(active_profile_path, &entry);
|
| - DCHECK(has_entry);
|
|
|
| - if (!entry->IsSigninRequired())
|
| + // |has_entry| may be false if a profile is specified on the command line.
|
| + if (has_entry && !entry->IsSigninRequired())
|
| return false;
|
|
|
| SetLastUsedProfile(guest_path.BaseName().MaybeAsASCII());
|
|
|