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

Unified Diff: remoting/host/remoting_me2me_host.cc

Issue 14234012: Enable RDP integration by default when the curtain mode is enabled by the policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixing a typo Created 7 years, 8 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 | remoting/remoting.gyp » ('j') | 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 8242ee60224747655a30d4288cbe1a587f80cee0..217eb57de34ab1917a1091cad4f54cbdbc5bb5f2 100644
--- a/remoting/host/remoting_me2me_host.cc
+++ b/remoting/host/remoting_me2me_host.cc
@@ -202,7 +202,8 @@ class HostProcess
void OnPolicyUpdate(scoped_ptr<base::DictionaryValue> policies);
bool OnHostDomainPolicyUpdate(const std::string& host_domain);
- bool OnUsernamePolicyUpdate(bool username_match_required);
+ bool OnUsernamePolicyUpdate(bool curtain_required,
+ bool username_match_required);
bool OnNatPolicyUpdate(bool nat_traversal_enabled);
bool OnCurtainPolicyUpdate(bool curtain_required);
bool OnHostTalkGadgetPrefixPolicyUpdate(const std::string& talkgadget_prefix);
@@ -724,10 +725,16 @@ void HostProcess::OnPolicyUpdate(scoped_ptr<base::DictionaryValue> policies) {
&string_value)) {
restart_required |= OnHostDomainPolicyUpdate(string_value);
}
+ bool curtain_required = false;
+ if (policies->GetBoolean(
+ policy_hack::PolicyWatcher::kHostRequireCurtainPolicyName,
+ &curtain_required)) {
+ restart_required |= OnCurtainPolicyUpdate(curtain_required);
+ }
if (policies->GetBoolean(
policy_hack::PolicyWatcher::kHostMatchUsernamePolicyName,
&bool_value)) {
- restart_required |= OnUsernamePolicyUpdate(bool_value);
+ restart_required |= OnUsernamePolicyUpdate(curtain_required, bool_value);
}
if (policies->GetBoolean(policy_hack::PolicyWatcher::kNatPolicyName,
&bool_value)) {
@@ -738,11 +745,6 @@ void HostProcess::OnPolicyUpdate(scoped_ptr<base::DictionaryValue> policies) {
&string_value)) {
restart_required |= OnHostTalkGadgetPrefixPolicyUpdate(string_value);
}
- if (policies->GetBoolean(
- policy_hack::PolicyWatcher::kHostRequireCurtainPolicyName,
- &bool_value)) {
- restart_required |= OnCurtainPolicyUpdate(bool_value);
- }
std::string token_url_string, token_validation_url_string;
if (policies->GetString(
policy_hack::PolicyWatcher::kHostTokenUrlPolicyName,
@@ -774,7 +776,8 @@ bool HostProcess::OnHostDomainPolicyUpdate(const std::string& host_domain) {
return false;
}
-bool HostProcess::OnUsernamePolicyUpdate(bool host_username_match_required) {
+bool HostProcess::OnUsernamePolicyUpdate(bool curtain_required,
+ bool host_username_match_required) {
// Returns false: never restart the host after this policy update.
DCHECK(context_->network_task_runner()->BelongsToCurrentThread());
@@ -794,6 +797,15 @@ bool HostProcess::OnUsernamePolicyUpdate(bool host_username_match_required) {
}
#endif
+ // Curtain-mode on Windows presents the standard OS login prompt to the user
+ // for each connection, removing the need for an explicit user-name matching
+ // check.
+#if defined(OS_WIN) && defined(REMOTING_RDP_SESSION)
+ if (curtain_required)
+ return false;
+#endif // defined(OS_WIN) && defined(REMOTING_RDP_SESSION)
+
+ // Shutdown the host if the username does not match.
if (shutdown) {
LOG(ERROR) << "The host username does not match.";
ShutdownHost(kUsernameMismatchExitCode);
« no previous file with comments | « no previous file | remoting/remoting.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698