Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1830)

Unified Diff: apps/shell_window.cc

Issue 115733007: Fix non-otr profile's file manager being launched in guest mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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,

Powered by Google App Engine
This is Rietveld 408576698