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

Side by Side Diff: chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos.h

Issue 654263003: Implemented OwnerSettingsService::Set() method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed crashes under asan. Created 6 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 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_STORE_CHROMEOS_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_STORE_CHROMEOS_H_
6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_STORE_CHROMEOS_H_ 6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_STORE_CHROMEOS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 // the signature validation step against already-installed policy. The checks 47 // the signature validation step against already-installed policy. The checks
48 // against installation-time attributes are performed nevertheless. The result 48 // against installation-time attributes are performed nevertheless. The result
49 // of the operation is reported through the OnStoreLoaded() or OnStoreError() 49 // of the operation is reported through the OnStoreLoaded() or OnStoreError()
50 // observer callbacks. 50 // observer callbacks.
51 void InstallInitialPolicy( 51 void InstallInitialPolicy(
52 const enterprise_management::PolicyFetchResponse& policy); 52 const enterprise_management::PolicyFetchResponse& policy);
53 53
54 // chromeos::DeviceSettingsService::Observer: 54 // chromeos::DeviceSettingsService::Observer:
55 virtual void OwnershipStatusChanged() override; 55 virtual void OwnershipStatusChanged() override;
56 virtual void DeviceSettingsUpdated() override; 56 virtual void DeviceSettingsUpdated() override;
57 virtual void OnDeviceSettingsServiceShutdown() override;
57 58
58 private: 59 private:
59 // Create a validator for |policy| with basic device policy configuration and 60 // Create a validator for |policy| with basic device policy configuration and
60 // OnPolicyStored() as the completion callback. 61 // OnPolicyStored() as the completion callback.
61 scoped_ptr<DeviceCloudPolicyValidator> CreateValidator( 62 scoped_ptr<DeviceCloudPolicyValidator> CreateValidator(
62 const enterprise_management::PolicyFetchResponse& policy); 63 const enterprise_management::PolicyFetchResponse& policy);
63 64
64 // Called on completion on the policy validation prior to storing policy. 65 // Called on completion on the policy validation prior to storing policy.
65 // Starts the actual store operation. 66 // Starts the actual store operation.
66 void OnPolicyToStoreValidated(DeviceCloudPolicyValidator* validator); 67 void OnPolicyToStoreValidated(DeviceCloudPolicyValidator* validator);
(...skipping 13 matching lines...) Expand all
80 bool enrollment_validation_done_; 81 bool enrollment_validation_done_;
81 82
82 base::WeakPtrFactory<DeviceCloudPolicyStoreChromeOS> weak_factory_; 83 base::WeakPtrFactory<DeviceCloudPolicyStoreChromeOS> weak_factory_;
83 84
84 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyStoreChromeOS); 85 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyStoreChromeOS);
85 }; 86 };
86 87
87 } // namespace policy 88 } // namespace policy
88 89
89 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_STORE_CHROMEOS_H_ 90 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_STORE_CHROMEOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698