Index: apps/shell_window.cc |
diff --git a/apps/shell_window.cc b/apps/shell_window.cc |
index 757cc3b3933d1355d41779485092c6bfc6d3dad4..1240cebe52f0036c96b7e92c1547b3878d1fb93a 100644 |
--- a/apps/shell_window.cc |
+++ b/apps/shell_window.cc |
@@ -146,6 +146,8 @@ ShellWindow::ShellWindow(Profile* profile, |
show_on_first_paint_(false), |
first_paint_complete_(false), |
cached_always_on_top_(false) { |
+ CHECK(!profile->IsGuestSession() || profile->IsOffTheRecord()) |
+ << "Only off the record window may be opened in the guest mode."; |
} |
void ShellWindow::Init(const GURL& url, |