| Index: chrome/browser/ui/browser.cc
|
| diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
|
| index 20867fdf82c237fa16b613884f8a6eb7fa164514..4820e24d65471fc2bd2ee23218c5dc481e0c2821 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())
|
|
|