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

Side by Side Diff: chrome/browser/chromeos/settings/session_manager_operation.h

Issue 2801993002: Abandon user sign in when policy is retrieved before session started (Closed)
Patch Set: Nit Created 3 years, 8 months 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_SETTINGS_SESSION_MANAGER_OPERATION_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_SETTINGS_SESSION_MANAGER_OPERATION_H_
6 #define CHROME_BROWSER_CHROMEOS_SETTINGS_SESSION_MANAGER_OPERATION_H_ 6 #define CHROME_BROWSER_CHROMEOS_SETTINGS_SESSION_MANAGER_OPERATION_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 void StorePublicKey(const base::Closure& callback, 104 void StorePublicKey(const base::Closure& callback,
105 scoped_refptr<ownership::PublicKey> new_key); 105 scoped_refptr<ownership::PublicKey> new_key);
106 106
107 // Triggers a device settings load. 107 // Triggers a device settings load.
108 void RetrieveDeviceSettings(); 108 void RetrieveDeviceSettings();
109 109
110 // Same as RetrieveDeviceSettings, but loads synchronously. 110 // Same as RetrieveDeviceSettings, but loads synchronously.
111 void BlockingRetrieveDeviceSettings(); 111 void BlockingRetrieveDeviceSettings();
112 112
113 // Validates device settings after retrieval from session_manager. 113 // Validates device settings after retrieval from session_manager.
114 void ValidateDeviceSettings(const std::string& policy_blob); 114 void ValidateDeviceSettings(
115 const std::string& policy_blob,
116 const chromeos::SessionManagerClient::RetrievePolicyResponseType&
emaxx 2017/04/18 15:03:17 nit: "chromeos::" is unnecessary here
emaxx 2017/04/18 15:03:17 nit: #include "chromeos/dbus/session_manager_clien
igorcov 2017/04/20 14:52:29 Done.
igorcov 2017/04/20 14:52:29 Done.
117 response_type);
115 118
116 // Extracts status and device settings from the validator and reports them. 119 // Extracts status and device settings from the validator and reports them.
117 void ReportValidatorStatus(policy::DeviceCloudPolicyValidator* validator); 120 void ReportValidatorStatus(policy::DeviceCloudPolicyValidator* validator);
118 121
119 SessionManagerClient* session_manager_client_ = nullptr; 122 SessionManagerClient* session_manager_client_ = nullptr;
120 scoped_refptr<ownership::OwnerKeyUtil> owner_key_util_; 123 scoped_refptr<ownership::OwnerKeyUtil> owner_key_util_;
121 124
122 Callback callback_; 125 Callback callback_;
123 126
124 scoped_refptr<ownership::PublicKey> public_key_; 127 scoped_refptr<ownership::PublicKey> public_key_;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 std::unique_ptr<enterprise_management::PolicyFetchResponse> policy_; 179 std::unique_ptr<enterprise_management::PolicyFetchResponse> policy_;
177 180
178 base::WeakPtrFactory<StoreSettingsOperation> weak_factory_; 181 base::WeakPtrFactory<StoreSettingsOperation> weak_factory_;
179 182
180 DISALLOW_COPY_AND_ASSIGN(StoreSettingsOperation); 183 DISALLOW_COPY_AND_ASSIGN(StoreSettingsOperation);
181 }; 184 };
182 185
183 } // namespace chromeos 186 } // namespace chromeos
184 187
185 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_SESSION_MANAGER_OPERATION_H_ 188 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_SESSION_MANAGER_OPERATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698