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

Unified Diff: chrome/browser/dom_ui/options/options_ui.cc

Issue 6272016: Prevent non-Incognito windows in the Guest session. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome/browser
Patch Set: fixed problem with PersonalDataManager Created 9 years, 11 months 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
« no previous file with comments | « no previous file | chrome/browser/profiles/profile.h » ('j') | chrome/browser/ui/browser_navigator.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/dom_ui/options/options_ui.cc
diff --git a/chrome/browser/dom_ui/options/options_ui.cc b/chrome/browser/dom_ui/options/options_ui.cc
index ffd8d78ac73ffff9dfbc54ea85c93a4a5b2ef049..64c7c3785ec250245da86b0ad615846033960ab3 100644
--- a/chrome/browser/dom_ui/options/options_ui.cc
+++ b/chrome/browser/dom_ui/options/options_ui.cc
@@ -256,7 +256,7 @@ RefCountedMemory* OptionsUI::GetFaviconResourceBytes() {
}
void OptionsUI::InitializeHandlers() {
- DCHECK(!GetProfile()->IsOffTheRecord());
+ DCHECK(!GetProfile()->IsOffTheRecord() || Profile::IsGuestSession());
std::vector<DOMMessageHandler*>::iterator iter;
// Skip over the generic handler.
« no previous file with comments | « no previous file | chrome/browser/profiles/profile.h » ('j') | chrome/browser/ui/browser_navigator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698