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 "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "components/policy/core/common/policy_switches.h" | 9 #include "components/policy/core/common/policy_switches.h" |
10 | 10 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 #elif defined(OS_IOS) | 44 #elif defined(OS_IOS) |
45 const char kChromeUserPolicyType[] = "google/ios/user"; | 45 const char kChromeUserPolicyType[] = "google/ios/user"; |
46 #else | 46 #else |
47 const char kChromeUserPolicyType[] = "google/chrome/user"; | 47 const char kChromeUserPolicyType[] = "google/chrome/user"; |
48 #endif | 48 #endif |
49 const char kChromePublicAccountPolicyType[] = "google/chromeos/publicaccount"; | 49 const char kChromePublicAccountPolicyType[] = "google/chromeos/publicaccount"; |
50 const char kChromeExtensionPolicyType[] = "google/chrome/extension"; | 50 const char kChromeExtensionPolicyType[] = "google/chrome/extension"; |
51 | 51 |
52 } // namespace dm_protocol | 52 } // namespace dm_protocol |
53 | 53 |
| 54 const char kChromePolicyHeader[] = "Chrome-Policy-Posture"; |
| 55 |
54 #if !defined(OS_CHROMEOS) | 56 #if !defined(OS_CHROMEOS) |
55 const uint8 kPolicyVerificationKey[] = { | 57 const uint8 kPolicyVerificationKey[] = { |
56 0x30, 0x82, 0x01, 0x22, 0x30, 0x0D, 0x06, 0x09, 0x2A, 0x86, 0x48, 0x86, 0xF7, | 58 0x30, 0x82, 0x01, 0x22, 0x30, 0x0D, 0x06, 0x09, 0x2A, 0x86, 0x48, 0x86, 0xF7, |
57 0x0D, 0x01, 0x01, 0x01, 0x05, 0x00, 0x03, 0x82, 0x01, 0x0F, 0x00, 0x30, 0x82, | 59 0x0D, 0x01, 0x01, 0x01, 0x05, 0x00, 0x03, 0x82, 0x01, 0x0F, 0x00, 0x30, 0x82, |
58 0x01, 0x0A, 0x02, 0x82, 0x01, 0x01, 0x00, 0xA7, 0xB3, 0xF9, 0x0D, 0xC7, 0xC7, | 60 0x01, 0x0A, 0x02, 0x82, 0x01, 0x01, 0x00, 0xA7, 0xB3, 0xF9, 0x0D, 0xC7, 0xC7, |
59 0x8D, 0x84, 0x3D, 0x4B, 0x80, 0xDD, 0x9A, 0x2F, 0xF8, 0x69, 0xD4, 0xD1, 0x14, | 61 0x8D, 0x84, 0x3D, 0x4B, 0x80, 0xDD, 0x9A, 0x2F, 0xF8, 0x69, 0xD4, 0xD1, 0x14, |
60 0x5A, 0xCA, 0x04, 0x4B, 0x1C, 0xBC, 0x28, 0xEB, 0x5E, 0x10, 0x01, 0x36, 0xFD, | 62 0x5A, 0xCA, 0x04, 0x4B, 0x1C, 0xBC, 0x28, 0xEB, 0x5E, 0x10, 0x01, 0x36, 0xFD, |
61 0x81, 0xEB, 0xE4, 0x3C, 0x16, 0x40, 0xA5, 0x8A, 0xE6, 0x08, 0xEE, 0xEF, 0x39, | 63 0x81, 0xEB, 0xE4, 0x3C, 0x16, 0x40, 0xA5, 0x8A, 0xE6, 0x08, 0xEE, 0xEF, 0x39, |
62 0x1F, 0x6B, 0x10, 0x29, 0x50, 0x84, 0xCE, 0xEE, 0x33, 0x5C, 0x48, 0x4A, 0x33, | 64 0x1F, 0x6B, 0x10, 0x29, 0x50, 0x84, 0xCE, 0xEE, 0x33, 0x5C, 0x48, 0x4A, 0x33, |
63 0xB0, 0xC8, 0x8A, 0x66, 0x0D, 0x10, 0x11, 0x9D, 0x6B, 0x55, 0x4C, 0x9A, 0x62, | 65 0xB0, 0xC8, 0x8A, 0x66, 0x0D, 0x10, 0x11, 0x9D, 0x6B, 0x55, 0x4C, 0x9A, 0x62, |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 const char* GetChromeUserPolicyType() { | 106 const char* GetChromeUserPolicyType() { |
105 #if defined(OS_ANDROID) || defined(OS_IOS) | 107 #if defined(OS_ANDROID) || defined(OS_IOS) |
106 CommandLine* command_line = CommandLine::ForCurrentProcess(); | 108 CommandLine* command_line = CommandLine::ForCurrentProcess(); |
107 if (command_line->HasSwitch(switches::kFakeCloudPolicyType)) | 109 if (command_line->HasSwitch(switches::kFakeCloudPolicyType)) |
108 return "google/chrome/user"; | 110 return "google/chrome/user"; |
109 #endif | 111 #endif |
110 return dm_protocol::kChromeUserPolicyType; | 112 return dm_protocol::kChromeUserPolicyType; |
111 } | 113 } |
112 | 114 |
113 } // namespace policy | 115 } // namespace policy |
OLD | NEW |