OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "chrome/browser/policy/cloud/component_cloud_policy_service.h" | 5 #include "chrome/browser/policy/cloud/component_cloud_policy_service.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/location.h" | 9 #include "base/location.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 base::Passed(&response))); | 303 base::Passed(&response))); |
304 } | 304 } |
305 } | 305 } |
306 } | 306 } |
307 | 307 |
308 void ComponentCloudPolicyService::OnRegistrationStateChanged( | 308 void ComponentCloudPolicyService::OnRegistrationStateChanged( |
309 CloudPolicyClient* client) { | 309 CloudPolicyClient* client) { |
310 // Ignored. | 310 // Ignored. |
311 } | 311 } |
312 | 312 |
| 313 void ComponentCloudPolicyService::OnRobotAuthCodesFetched( |
| 314 CloudPolicyClient* client) { |
| 315 // Ignored. |
| 316 } |
| 317 |
313 void ComponentCloudPolicyService::OnClientError(CloudPolicyClient* client) { | 318 void ComponentCloudPolicyService::OnClientError(CloudPolicyClient* client) { |
314 // Ignored. | 319 // Ignored. |
315 } | 320 } |
316 | 321 |
317 void ComponentCloudPolicyService::OnStoreLoaded(CloudPolicyStore* store) { | 322 void ComponentCloudPolicyService::OnStoreLoaded(CloudPolicyStore* store) { |
318 DCHECK_EQ(store_, store); | 323 DCHECK_EQ(store_, store); |
319 if (store_->is_initialized()) { | 324 if (store_->is_initialized()) { |
320 if (is_initialized()) { | 325 if (is_initialized()) { |
321 // The backend is already initialized; update the credentials, in case | 326 // The backend is already initialized; update the credentials, in case |
322 // a new dmtoken or server key became available. | 327 // a new dmtoken or server key became available. |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
437 PolicyDomain domain, | 442 PolicyDomain domain, |
438 const StringSet& set) { | 443 const StringSet& set) { |
439 std::string policy_type; | 444 std::string policy_type; |
440 if (ComponentCloudPolicyStore::GetPolicyType(domain, &policy_type)) { | 445 if (ComponentCloudPolicyStore::GetPolicyType(domain, &policy_type)) { |
441 for (StringSet::const_iterator it = set.begin(); it != set.end(); ++it) | 446 for (StringSet::const_iterator it = set.begin(); it != set.end(); ++it) |
442 client_->RemoveNamespaceToFetch(PolicyNamespaceKey(policy_type, *it)); | 447 client_->RemoveNamespaceToFetch(PolicyNamespaceKey(policy_type, *it)); |
443 } | 448 } |
444 } | 449 } |
445 | 450 |
446 } // namespace policy | 451 } // namespace policy |
OLD | NEW |