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

Unified Diff: remoting/host/policy_hack/policy_watcher.cc

Issue 10825149: [Chromoting] Add new Chromoting enterprise policies (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add 'remote access' to caption and desc Created 8 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 | « remoting/host/policy_hack/policy_watcher.h ('k') | remoting/host/policy_hack/policy_watcher_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/policy_hack/policy_watcher.cc
diff --git a/remoting/host/policy_hack/policy_watcher.cc b/remoting/host/policy_hack/policy_watcher.cc
index 6ee7c6a2a89f025ca5bb1e3ee2fe2a56e427b426..0d197729c4784f350473e31dc704fc18d64bd39b 100644
--- a/remoting/host/policy_hack/policy_watcher.cc
+++ b/remoting/host/policy_hack/policy_watcher.cc
@@ -15,6 +15,7 @@
#include "base/synchronization/waitable_event.h"
#include "base/time.h"
#include "base/values.h"
+#include "remoting/host/constants.h"
namespace remoting {
namespace policy_hack {
@@ -89,13 +90,13 @@ scoped_ptr<base::DictionaryValue> AddDefaultValuesWhenNecessary(
CopyBooleanOrDefault(to.get(), from,
PolicyWatcher::kNatPolicyName, true, false);
CopyBooleanOrDefault(to.get(), from,
- PolicyWatcher::kRequireTwoFactorPolicyName,
+ PolicyWatcher::kHostRequireTwoFactorPolicyName,
false, false);
CopyStringOrDefault(to.get(), from,
PolicyWatcher::kHostDomainPolicyName, "", "");
CopyStringOrDefault(to.get(), from,
- PolicyWatcher::kTalkGadgetPolicyName,
- "chromoting", "chromoting");
+ PolicyWatcher::kHostTalkGadgetPrefixPolicyName,
+ kDefaultTalkGadgetPrefix, kDefaultTalkGadgetPrefix);
return to.Pass();
}
@@ -105,18 +106,18 @@ scoped_ptr<base::DictionaryValue> AddDefaultValuesWhenNecessary(
const char PolicyWatcher::kNatPolicyName[] =
"RemoteAccessHostFirewallTraversal";
-const char PolicyWatcher::kRequireTwoFactorPolicyName[] =
+const char PolicyWatcher::kHostRequireTwoFactorPolicyName[] =
"RemoteAccessHostRequireTwoFactor";
const char PolicyWatcher::kHostDomainPolicyName[] =
"RemoteAccessHostDomain";
-const char PolicyWatcher::kTalkGadgetPolicyName[] =
- "RemoteAccessHostTalkGadget";
+const char PolicyWatcher::kHostTalkGadgetPrefixPolicyName[] =
+ "RemoteAccessHostTalkGadgetPrefix";
const char* const PolicyWatcher::kBooleanPolicyNames[] =
{ PolicyWatcher::kNatPolicyName,
- PolicyWatcher::kRequireTwoFactorPolicyName
+ PolicyWatcher::kHostRequireTwoFactorPolicyName
};
const int PolicyWatcher::kBooleanPolicyNamesNum =
@@ -124,7 +125,7 @@ const int PolicyWatcher::kBooleanPolicyNamesNum =
const char* const PolicyWatcher::kStringPolicyNames[] =
{ PolicyWatcher::kHostDomainPolicyName,
- PolicyWatcher::kTalkGadgetPolicyName
+ PolicyWatcher::kHostTalkGadgetPrefixPolicyName
};
const int PolicyWatcher::kStringPolicyNamesNum =
« no previous file with comments | « remoting/host/policy_hack/policy_watcher.h ('k') | remoting/host/policy_hack/policy_watcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698