| Index: chrome/browser/ui/browser.cc
|
| diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
|
| index d1884fda48ac71b48d24adf6ecc0ec30bdee13c1..d8ed53fdc045153145375e209a695eedd6afa692 100644
|
| --- a/chrome/browser/ui/browser.cc
|
| +++ b/chrome/browser/ui/browser.cc
|
| @@ -355,6 +355,8 @@ Browser::Browser(const CreateParams& params)
|
| // that is disallowed by policy. The crash prevents the disabled window type
|
| // from opening at all, but the path that triggered it should be fixed.
|
| CHECK(IncognitoModePrefs::CanOpenBrowser(profile_));
|
| + CHECK(!profile_->IsGuestSession() || profile_->IsOffTheRecord())
|
| + << "Only off the record browser may be opened in guest mode";
|
|
|
| // TODO(jeremy): Move to initializer list once flag is removed.
|
| if (IsFastTabUnloadEnabled())
|
|
|