/external/chromium_org/chrome/browser/chromeos/policy/ |
device_policy_builder.cc | 17 policy_data().set_policy_type(dm_protocol::kChromeDevicePolicyType);
|
device_cloud_policy_store_chromeos.cc | 41 !device_settings_service_->policy_data() || !owner_key.get() || 51 device_settings_service_->policy_data(), 136 if (device_settings_service_->policy_data()) 137 policy_->MergeFrom(*device_settings_service_->policy_data());
|
device_local_account_policy_service.cc | 52 const em::PolicyData* policy_data = device_settings_service->policy_data(); local 53 if (!policy_data || 54 !policy_data->has_request_token() || 55 !policy_data->has_device_id() || 70 client->SetupRegistration(policy_data->request_token(), 71 policy_data->device_id());
|
/external/chromium_org/tools/grit/grit/format/policy_templates/ |
template_formatter.py | 44 policy_data = _ParseGritNodes(root, lang) 46 policy_template_generator.PolicyTemplateGenerator(config, policy_data) 62 policy_data = None 67 assert policy_data is None 72 policy_data = eval(json_text) 73 return policy_data
|
policy_template_generator_unittest.py | 22 def do_test(self, policy_data, writer): 33 policy_data: The list of policies and groups as it would be 44 if not 'messages' in policy_data: 45 policy_data['messages'] = {} 46 if not 'placeholders' in policy_data: 47 policy_data['placeholders'] = [] 48 if not 'policy_definitions' in policy_data: 49 policy_data['policy_definitions'] = [] 52 policy_data) 351 policy_data = [all...] |
/external/chromium/chrome/browser/policy/ |
device_policy_cache.cc | 154 em::PolicyData policy_data; local 155 if (!policy_data.ParseFromString(policy.policy_data())) { 162 if (registration_user != policy_data.username()) { 163 LOG(WARNING) << "Refusing policy blob for " << policy_data.username() 197 em::PolicyData policy_data; local 198 if (!policy_data.ParseFromString(policy.policy_data())) { 204 if (!policy_data.has_request_token() || 205 policy_data.request_token().empty()) [all...] |
user_policy_cache.h | 39 virtual bool DecodePolicyData(const em::PolicyData& policy_data, 48 // If |mandatory| and |recommended| are both empty, and |policy_data| 51 void MaybeDecodeOldstylePolicy(const std::string& policy_data,
|
cloud_policy_cache_base.cc | 159 std::string data = policy_response.policy_data(); 160 em::PolicyData policy_data; local 161 if (!policy_data.ParseFromString(data)) { 167 base::TimeDelta::FromMilliseconds(policy_data.timestamp()); 170 public_key_version->valid = policy_data.has_public_key_version(); 172 public_key_version->version = policy_data.public_key_version(); 175 return DecodePolicyData(policy_data, mandatory, recommended);
|
cloud_policy_cache_base.h | 89 // Decodes |policy_data|, populating |mandatory| and |recommended| with 91 virtual bool DecodePolicyData(const em::PolicyData& policy_data,
|
device_policy_cache.h | 55 virtual bool DecodePolicyData(const em::PolicyData& policy_data,
|
user_policy_cache.cc | 143 bool UserPolicyCache::DecodePolicyData(const em::PolicyData& policy_data, 146 // TODO(jkummerow): Verify policy_data.device_token(). Needs final 149 if (!policy.ParseFromString(policy_data.policy_value())) { 154 MaybeDecodeOldstylePolicy(policy_data.policy_value(), mandatory, recommended); 182 const std::string& policy_data, 190 if (!policy.ParseFromString(policy_data))
|
/external/chromium_org/chrome/browser/chromeos/settings/ |
session_manager_operation_unittest.cc | 102 EXPECT_FALSE(op.policy_data().get()); 139 ASSERT_TRUE(op.policy_data().get()); 140 EXPECT_EQ(policy_.policy_data().SerializeAsString(), 141 op.policy_data()->SerializeAsString()); 198 ASSERT_TRUE(op.policy_data().get()); 199 EXPECT_EQ(policy_.policy_data().SerializeAsString(), 200 op.policy_data()->SerializeAsString()); 222 ASSERT_TRUE(op.policy_data().get()); 223 EXPECT_EQ(policy_.policy_data().SerializeAsString(), 224 op.policy_data()->SerializeAsString()) [all...] |
device_settings_service_unittest.cc | 65 ASSERT_TRUE(device_settings_service_.policy_data()); 66 EXPECT_EQ(device_policy_.policy_data().SerializeAsString(), 67 device_settings_service_.policy_data()->SerializeAsString()); 88 EXPECT_FALSE(device_settings_service_.policy_data()); 98 EXPECT_FALSE(device_settings_service_.policy_data()); 110 EXPECT_FALSE(device_settings_service_.policy_data()); 117 device_policy_.policy_data().set_timestamp( 165 device_settings_service_.SetUsername(device_policy_.policy_data().username()); 190 device_settings_service_.SetUsername(device_policy_.policy_data().username()); 310 device_settings_service_.SetUsername(device_policy_.policy_data().username()) [all...] |
/external/chromium_org/components/policy/core/common/cloud/ |
cloud_policy_validator_unittest.cc | 86 EXPECT_EQ(policy_.policy_data().SerializeAsString(), 87 validator->policy_data()->SerializeAsString()); 126 policy_.policy_data().clear_request_token(); 132 policy_.policy_data().set_username( 138 policy_.policy_data().clear_policy_type(); 143 policy_.policy_data().set_policy_type("invalid"); 148 policy_.policy_data().clear_timestamp(); 154 policy_.policy_data().clear_timestamp(); 160 policy_.policy_data().set_timestamp( 167 policy_.policy_data().set_timestamp [all...] |
user_cloud_policy_store_base.cc | 43 scoped_ptr<enterprise_management::PolicyData> policy_data, 48 policy_ = policy_data.Pass();
|
user_cloud_policy_store_base.h | 39 // Sets |policy_data| and |payload| as the active policy. 41 scoped_ptr<enterprise_management::PolicyData> policy_data,
|
component_cloud_policy_updater_unittest.cc | 103 builder_.policy_data().set_policy_type( 105 builder_.policy_data().set_settings_entity_id(kTestExtension); 158 builder_.policy_data().set_settings_entity_id(kTestExtension2); 161 builder_.policy_data().set_settings_entity_id(kTestExtension3); 178 builder_.policy_data().set_username("wronguser@example.com"); 182 builder_.policy_data().set_username(ComponentPolicyBuilder::kFakeUsername); 183 builder_.policy_data().set_settings_entity_id(kTestExtension2); 186 builder_.policy_data().set_settings_entity_id(kTestExtension3); 225 builder_.policy_data().set_settings_entity_id(kTestExtension2); 227 builder_.policy_data().set_settings_entity_id(kTestExtension3) [all...] |
component_cloud_policy_store_unittest.cc | 80 builder_.policy_data().set_policy_type( 82 builder_.policy_data().set_settings_entity_id(kTestExtension); 128 builder_.policy_data().set_username("anotheruser@example.com"); 135 builder_.policy_data().set_request_token("notmytoken"); 142 builder_.policy_data().set_policy_type(dm_protocol::kChromeUserPolicyType); 166 builder_.policy_data().set_policy_value("broken"); 215 builder_.policy_data().set_policy_type(dm_protocol::kChromeUserPolicyType); 220 builder_.policy_data().set_policy_type(
|
policy_builder.h | 46 enterprise_management::PolicyData& policy_data() { function in class:policy::PolicyBuilder 125 CHECK(payload_->SerializeToString(policy_data().mutable_policy_value()));
|
component_cloud_policy_store.cc | 251 em::PolicyData policy_data; local 253 proto.Pass(), std::string(), std::string(), payload, &policy_data)) { 257 if (!policy_data.has_policy_type()) 261 GetDomainConstantsForType(policy_data.policy_type()); 262 if (!constants || !policy_data.has_settings_entity_id()) 266 ns->component_id = policy_data.settings_entity_id(); 275 em::PolicyData* policy_data) { 311 if (policy_data) 312 policy_data->Swap(validator->policy_data().get()) [all...] |
cloud_policy_validator.cc | 99 const em::PolicyData* policy_data, 104 if (policy_data) { 107 base::TimeDelta::FromMilliseconds(policy_data->timestamp()); 108 expected_dm_token = policy_data->request_token(); 180 if (!policy_data_->ParseFromString(policy_->policy_data()) || 226 !VerifySignature(policy_->policy_data(), *signature_key, 238 !VerifySignature(policy_->policy_data(), policy_->new_public_key(),
|
cloud_policy_client.cc | 377 em::PolicyData policy_data; local 378 if (!policy_data.ParseFromString(response.policy_data()) || 379 !policy_data.IsInitialized() || 380 !policy_data.has_policy_type()) { 384 const std::string& type = policy_data.policy_type(); 386 if (policy_data.has_settings_entity_id()) 387 entity_id = policy_data.settings_entity_id();
|
user_cloud_policy_store.cc | 189 validator->policy_data()->request_token(); 190 DVLOG(1) << "Device ID: " << validator->policy_data()->device_id(); 192 InstallPolicy(validator->policy_data().Pass(), validator->payload().Pass()); 249 InstallPolicy(validator->policy_data().Pass(), validator->payload().Pass());
|
/external/chromium/net/tools/testserver/ |
device_management.py | 242 policy_data = dm.PolicyData() 243 policy_data.policy_type = msg.policy_type 244 policy_data.policy_value = chrome_initial_settings.SerializeToString() 249 fetch_response.policy_data = ( 250 policy_data.SerializeToString()) 475 policy_data = dm.PolicyData() 476 policy_data.policy_type = msg.policy_type 477 policy_data.timestamp = int(time.time() * 1000) 478 policy_data.request_token = token_info['device_token']; 479 policy_data.policy_value = policy_valu [all...] |
/external/chromium_org/chrome/browser/policy/test/ |
policy_testserver.py | 587 policy_data = dm.PolicyData() 588 policy_data.policy_type = msg.policy_type 589 policy_data.timestamp = int(time.time() * 1000) 590 policy_data.request_token = token_info['device_token'] 591 policy_data.policy_value = payload 592 policy_data.machine_name = token_info['machine_name'] 593 policy_data.valid_serial_number_missing = ( 595 policy_data.settings_entity_id = msg.settings_entity_id 596 policy_data.service_account_identity = policy.get( 601 policy_data.invalidation_source = invalidation_sourc [all...] |