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 "chrome/browser/policy/cloud_policy_store.h" | 5 #include "chrome/browser/policy/cloud/cloud_policy_store.h" |
6 | 6 |
7 namespace policy { | 7 namespace policy { |
8 | 8 |
9 CloudPolicyStore::Observer::~Observer() {} | 9 CloudPolicyStore::Observer::~Observer() {} |
10 | 10 |
11 CloudPolicyStore::CloudPolicyStore() | 11 CloudPolicyStore::CloudPolicyStore() |
12 : status_(STATUS_OK), | 12 : status_(STATUS_OK), |
13 validation_status_(CloudPolicyValidatorBase::VALIDATION_OK), | 13 validation_status_(CloudPolicyValidatorBase::VALIDATION_OK), |
14 is_initialized_(false) {} | 14 is_initialized_(false) {} |
15 | 15 |
(...skipping 11 matching lines...) Expand all Loading... |
27 is_initialized_ = true; | 27 is_initialized_ = true; |
28 FOR_EACH_OBSERVER(Observer, observers_, OnStoreLoaded(this)); | 28 FOR_EACH_OBSERVER(Observer, observers_, OnStoreLoaded(this)); |
29 } | 29 } |
30 | 30 |
31 void CloudPolicyStore::NotifyStoreError() { | 31 void CloudPolicyStore::NotifyStoreError() { |
32 is_initialized_ = true; | 32 is_initialized_ = true; |
33 FOR_EACH_OBSERVER(Observer, observers_, OnStoreError(this)); | 33 FOR_EACH_OBSERVER(Observer, observers_, OnStoreError(this)); |
34 } | 34 } |
35 | 35 |
36 } // namespace | 36 } // namespace |
OLD | NEW |