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

Unified Diff: chrome/browser/ui/browser_init.cc

Issue 7562009: Print an error when trying to launch an incognito browser and incognito is disabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changed ERROR to WARNING, rebased Created 9 years, 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_init.cc
diff --git a/chrome/browser/ui/browser_init.cc b/chrome/browser/ui/browser_init.cc
index 0f672f366321829d09984617a77ee05a2e2947d5..9aaa2bbcc6d29ec67f923cc91b8da8330970d417 100644
--- a/chrome/browser/ui/browser_init.cc
+++ b/chrome/browser/ui/browser_init.cc
@@ -549,6 +549,9 @@ bool BrowserInit::LaunchBrowser(const CommandLine& command_line,
// is forced.
if (IncognitoIsForced(command_line, profile->GetPrefs())) {
profile = profile->GetOffTheRecordProfile();
+ } else if (command_line.HasSwitch(switches::kIncognito)) {
+ LOG(WARNING) << "Incognito mode disabled by policy, launching a normal "
+ << "browser session.";
}
BrowserInit::LaunchWithProfile lwp(cur_dir, command_line, this);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698