| Index: chrome/browser/profiles/off_the_record_profile_impl.cc
|
| diff --git a/chrome/browser/profiles/off_the_record_profile_impl.cc b/chrome/browser/profiles/off_the_record_profile_impl.cc
|
| index 7173d0f69ec3bb29004bdb7d2f698980eb0502f8..263ccbb3a97741d4014608fa9e7bc44e35e17fc6 100644
|
| --- a/chrome/browser/profiles/off_the_record_profile_impl.cc
|
| +++ b/chrome/browser/profiles/off_the_record_profile_impl.cc
|
| @@ -124,8 +124,10 @@ void OffTheRecordProfileImpl::Init() {
|
| BrowserContextDependencyManager::GetInstance()->CreateBrowserContextServices(
|
| this);
|
|
|
| - DCHECK_NE(IncognitoModePrefs::DISABLED,
|
| - IncognitoModePrefs::GetAvailability(profile_->GetPrefs()));
|
| + // Guest profiles may always be OTR. Check IncognitoModePrefs otherwise.
|
| + DCHECK(profile_->IsGuestSession() ||
|
| + IncognitoModePrefs::GetAvailability(profile_->GetPrefs()) !=
|
| + IncognitoModePrefs::DISABLED);
|
|
|
| #if defined(OS_ANDROID) || defined(OS_IOS)
|
| UseSystemProxy();
|
|
|