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

Side by Side Diff: components/policy/core/common/cloud/cloud_policy_constants.cc

Issue 2440473004: Add policy domain for signin screen apps (Closed)
Patch Set: More comments according to feedback Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 const char kChromeUserPolicyType[] = "google/chromeos/user"; 55 const char kChromeUserPolicyType[] = "google/chromeos/user";
56 #elif defined(OS_ANDROID) 56 #elif defined(OS_ANDROID)
57 const char kChromeUserPolicyType[] = "google/android/user"; 57 const char kChromeUserPolicyType[] = "google/android/user";
58 #elif defined(OS_IOS) 58 #elif defined(OS_IOS)
59 const char kChromeUserPolicyType[] = "google/ios/user"; 59 const char kChromeUserPolicyType[] = "google/ios/user";
60 #else 60 #else
61 const char kChromeUserPolicyType[] = "google/chrome/user"; 61 const char kChromeUserPolicyType[] = "google/chrome/user";
62 #endif 62 #endif
63 const char kChromePublicAccountPolicyType[] = "google/chromeos/publicaccount"; 63 const char kChromePublicAccountPolicyType[] = "google/chromeos/publicaccount";
64 const char kChromeExtensionPolicyType[] = "google/chrome/extension"; 64 const char kChromeExtensionPolicyType[] = "google/chrome/extension";
65 const char kChromeSigninExtensionPolicyType[] =
66 "google/chromeos/signinextension";
65 67
66 } // namespace dm_protocol 68 } // namespace dm_protocol
67 69
68 const char kChromePolicyHeader[] = "Chrome-Policy-Posture"; 70 const char kChromePolicyHeader[] = "Chrome-Policy-Posture";
69 71
70 const uint8_t kPolicyVerificationKey[] = { 72 const uint8_t kPolicyVerificationKey[] = {
71 0x30, 0x82, 0x01, 0x22, 0x30, 0x0D, 0x06, 0x09, 0x2A, 0x86, 0x48, 0x86, 73 0x30, 0x82, 0x01, 0x22, 0x30, 0x0D, 0x06, 0x09, 0x2A, 0x86, 0x48, 0x86,
72 0xF7, 0x0D, 0x01, 0x01, 0x01, 0x05, 0x00, 0x03, 0x82, 0x01, 0x0F, 0x00, 74 0xF7, 0x0D, 0x01, 0x01, 0x01, 0x05, 0x00, 0x03, 0x82, 0x01, 0x0F, 0x00,
73 0x30, 0x82, 0x01, 0x0A, 0x02, 0x82, 0x01, 0x01, 0x00, 0xA7, 0xB3, 0xF9, 75 0x30, 0x82, 0x01, 0x0A, 0x02, 0x82, 0x01, 0x01, 0x00, 0xA7, 0xB3, 0xF9,
74 0x0D, 0xC7, 0xC7, 0x8D, 0x84, 0x3D, 0x4B, 0x80, 0xDD, 0x9A, 0x2F, 0xF8, 76 0x0D, 0xC7, 0xC7, 0x8D, 0x84, 0x3D, 0x4B, 0x80, 0xDD, 0x9A, 0x2F, 0xF8,
(...skipping 25 matching lines...) Expand all
100 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); 102 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
101 if (command_line->HasSwitch(switches::kDisablePolicyKeyVerification)) { 103 if (command_line->HasSwitch(switches::kDisablePolicyKeyVerification)) {
102 return std::string(); 104 return std::string();
103 } else { 105 } else {
104 return std::string(reinterpret_cast<const char*>(kPolicyVerificationKey), 106 return std::string(reinterpret_cast<const char*>(kPolicyVerificationKey),
105 sizeof(kPolicyVerificationKey)); 107 sizeof(kPolicyVerificationKey));
106 } 108 }
107 } 109 }
108 110
109 } // namespace policy 111 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698