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

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

Issue 2606423002: Remove disable-policy-key-verification command line flag (Closed)
Patch Set: Rename deprecated constant Created 3 years, 11 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
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 4e2bc47a31b9e0af1587ab533c54ab35c5be3577..f272a72c1a15b36ead0144d3f3e6d4aee1d2f39d 100644
--- a/components/policy/core/common/cloud/cloud_policy_constants.cc
+++ b/components/policy/core/common/cloud/cloud_policy_constants.cc
@@ -99,13 +99,8 @@ const uint8_t kPolicyVerificationKey[] = {
const char kPolicyVerificationKeyHash[] = "1:356l7w";
std::string GetPolicyVerificationKey() {
- base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
- if (command_line->HasSwitch(switches::kDisablePolicyKeyVerification)) {
- return std::string();
- } else {
- return std::string(reinterpret_cast<const char*>(kPolicyVerificationKey),
- sizeof(kPolicyVerificationKey));
- }
+ return std::string(reinterpret_cast<const char*>(kPolicyVerificationKey),
+ sizeof(kPolicyVerificationKey));
}
} // namespace policy

Powered by Google App Engine
This is Rietveld 408576698