| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "components/policy/core/common/cloud/cloud_policy_constants.h" | 5 #include "components/policy/core/common/cloud/cloud_policy_constants.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 const char kChromeUserPolicyType[] = "google/chromeos/user"; | 54 const char kChromeUserPolicyType[] = "google/chromeos/user"; |
| 55 #elif defined(OS_ANDROID) | 55 #elif defined(OS_ANDROID) |
| 56 const char kChromeUserPolicyType[] = "google/android/user"; | 56 const char kChromeUserPolicyType[] = "google/android/user"; |
| 57 #elif defined(OS_IOS) | 57 #elif defined(OS_IOS) |
| 58 const char kChromeUserPolicyType[] = "google/ios/user"; | 58 const char kChromeUserPolicyType[] = "google/ios/user"; |
| 59 #else | 59 #else |
| 60 const char kChromeUserPolicyType[] = "google/chrome/user"; | 60 const char kChromeUserPolicyType[] = "google/chrome/user"; |
| 61 #endif | 61 #endif |
| 62 const char kChromePublicAccountPolicyType[] = "google/chromeos/publicaccount"; | 62 const char kChromePublicAccountPolicyType[] = "google/chromeos/publicaccount"; |
| 63 const char kChromeExtensionPolicyType[] = "google/chrome/extension"; | 63 const char kChromeExtensionPolicyType[] = "google/chrome/extension"; |
| 64 const char kChromeSigninExtensionPolicyType[] = |
| 65 "google/chromeos/signinextension"; |
| 64 | 66 |
| 65 } // namespace dm_protocol | 67 } // namespace dm_protocol |
| 66 | 68 |
| 67 const char kChromePolicyHeader[] = "Chrome-Policy-Posture"; | 69 const char kChromePolicyHeader[] = "Chrome-Policy-Posture"; |
| 68 | 70 |
| 69 const uint8_t kPolicyVerificationKey[] = { | 71 const uint8_t kPolicyVerificationKey[] = { |
| 70 0x30, 0x82, 0x01, 0x22, 0x30, 0x0D, 0x06, 0x09, 0x2A, 0x86, 0x48, 0x86, | 72 0x30, 0x82, 0x01, 0x22, 0x30, 0x0D, 0x06, 0x09, 0x2A, 0x86, 0x48, 0x86, |
| 71 0xF7, 0x0D, 0x01, 0x01, 0x01, 0x05, 0x00, 0x03, 0x82, 0x01, 0x0F, 0x00, | 73 0xF7, 0x0D, 0x01, 0x01, 0x01, 0x05, 0x00, 0x03, 0x82, 0x01, 0x0F, 0x00, |
| 72 0x30, 0x82, 0x01, 0x0A, 0x02, 0x82, 0x01, 0x01, 0x00, 0xA7, 0xB3, 0xF9, | 74 0x30, 0x82, 0x01, 0x0A, 0x02, 0x82, 0x01, 0x01, 0x00, 0xA7, 0xB3, 0xF9, |
| 73 0x0D, 0xC7, 0xC7, 0x8D, 0x84, 0x3D, 0x4B, 0x80, 0xDD, 0x9A, 0x2F, 0xF8, | 75 0x0D, 0xC7, 0xC7, 0x8D, 0x84, 0x3D, 0x4B, 0x80, 0xDD, 0x9A, 0x2F, 0xF8, |
| (...skipping 25 matching lines...) Expand all Loading... |
| 99 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); | 101 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); |
| 100 if (command_line->HasSwitch(switches::kDisablePolicyKeyVerification)) { | 102 if (command_line->HasSwitch(switches::kDisablePolicyKeyVerification)) { |
| 101 return std::string(); | 103 return std::string(); |
| 102 } else { | 104 } else { |
| 103 return std::string(reinterpret_cast<const char*>(kPolicyVerificationKey), | 105 return std::string(reinterpret_cast<const char*>(kPolicyVerificationKey), |
| 104 sizeof(kPolicyVerificationKey)); | 106 sizeof(kPolicyVerificationKey)); |
| 105 } | 107 } |
| 106 } | 108 } |
| 107 | 109 |
| 108 } // namespace policy | 110 } // namespace policy |
| OLD | NEW |