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

Unified Diff: remoting/host/remoting_me2me_host.cc

Issue 12395018: Write an error message to the debug log when the host is shutting down because of a policy setting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | « remoting/host/curtain_mode_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/remoting_me2me_host.cc
diff --git a/remoting/host/remoting_me2me_host.cc b/remoting/host/remoting_me2me_host.cc
index 2d1a3b7c249dca496079ae9f3e490cd25bbac52f..2214045a429c10f2d372e0ae16f62e825a5086ed 100644
--- a/remoting/host/remoting_me2me_host.cc
+++ b/remoting/host/remoting_me2me_host.cc
@@ -800,6 +800,7 @@ bool HostProcess::OnUsernamePolicyUpdate(bool host_username_match_required) {
#endif
if (shutdown) {
+ LOG(ERROR) << "The host username does not match.";
ShutdownHost(kUsernameMismatchExitCode);
}
} else {
@@ -840,6 +841,8 @@ bool HostProcess::OnCurtainPolicyUpdate(bool curtain_required) {
// TODO(jamiewalch): Fix this once we have implemented the multi-process
// daemon architecture (crbug.com/134894)
if (getuid() == 0) {
+ LOG(ERROR) << "Running the host in the console login session is yet not "
+ "supported.";
ShutdownHost(kLoginScreenNotSupportedExitCode);
return false;
}
@@ -848,9 +851,9 @@ bool HostProcess::OnCurtainPolicyUpdate(bool curtain_required) {
if (curtain_required_ != curtain_required) {
if (curtain_required)
- LOG(ERROR) << "Policy requires curtain-mode.";
+ LOG(INFO) << "Policy requires curtain-mode.";
else
- LOG(ERROR) << "Policy does not require curtain-mode.";
+ LOG(INFO) << "Policy does not require curtain-mode.";
curtain_required_ = curtain_required;
if (curtaining_host_observer_)
curtaining_host_observer_->SetEnableCurtaining(curtain_required_);
« no previous file with comments | « remoting/host/curtain_mode_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698