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

Unified Diff: components/policy/core/common/cloud/cloud_policy_constants.cc

Issue 156723002: Disable key verification by default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | « no previous file | components/policy/core/common/cloud/cloud_policy_validator_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/policy/core/common/cloud/cloud_policy_constants.cc
diff --git a/components/policy/core/common/cloud/cloud_policy_constants.cc b/components/policy/core/common/cloud/cloud_policy_constants.cc
index 56b94117925b547d1124db3b72f80de3f79c5af5..4d2920ecf92a89e4555988b2d0bc93e11c480f15 100644
--- a/components/policy/core/common/cloud/cloud_policy_constants.cc
+++ b/components/policy/core/common/cloud/cloud_policy_constants.cc
@@ -88,10 +88,10 @@ std::string GetPolicyVerificationKey() {
// the policy blob securely.
return std::string();
#else
- // Allow disabling key verification until we update the test servers with
- // verification signatures for all QA domains (http://crbug.com/328038).
+ // Disable key verification by default until production servers generate
+ // the proper signatures.
CommandLine* command_line = CommandLine::ForCurrentProcess();
- if (command_line->HasSwitch(switches::kSkipPolicyKeyVerification)) {
+ if (!command_line->HasSwitch(switches::kEnablePolicyKeyVerification)) {
return std::string();
} else {
return std::string(reinterpret_cast<const char*>(kPolicyVerificationKey),
« no previous file with comments | « no previous file | components/policy/core/common/cloud/cloud_policy_validator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698