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

Side by Side Diff: chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.cc

Issue 12538009: Public Sessions: fetch device robot api token during enterprise enrollment. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 9 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 #include "chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.h" 5 #include "chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.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 "chrome/browser/policy/cloud/cloud_policy_refresh_scheduler.h" 9 #include "chrome/browser/policy/cloud/cloud_policy_refresh_scheduler.h"
10 #include "chrome/browser/policy/cloud/cloud_policy_service.h" 10 #include "chrome/browser/policy/cloud/cloud_policy_service.h"
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 &UserCloudPolicyManagerChromeOS::OnInitialPolicyFetchComplete, 144 &UserCloudPolicyManagerChromeOS::OnInitialPolicyFetchComplete,
145 base::Unretained(this))); 145 base::Unretained(this)));
146 } else { 146 } else {
147 // If the client has switched to not registered, we bail out as this 147 // If the client has switched to not registered, we bail out as this
148 // indicates the cloud policy setup flow has been aborted. 148 // indicates the cloud policy setup flow has been aborted.
149 CancelWaitForPolicyFetch(); 149 CancelWaitForPolicyFetch();
150 } 150 }
151 } 151 }
152 } 152 }
153 153
154 void UserCloudPolicyManagerChromeOS::OnRobotAuthCodesFetched(
155 CloudPolicyClient* client) {
156 // No action required. Robot auth codes are only fetched during
157 // registratrion, which is covered by OnRegistrationStateChanged above.
Mattias Nissler (ping if slow) 2013/03/19 06:33:08 *registration
David Roche 2013/04/02 01:59:25 Fixed, thx.
158 }
159
154 void UserCloudPolicyManagerChromeOS::OnClientError( 160 void UserCloudPolicyManagerChromeOS::OnClientError(
155 CloudPolicyClient* cloud_policy_client) { 161 CloudPolicyClient* cloud_policy_client) {
156 DCHECK_EQ(client(), cloud_policy_client); 162 DCHECK_EQ(client(), cloud_policy_client);
157 CancelWaitForPolicyFetch(); 163 CancelWaitForPolicyFetch();
158 } 164 }
159 165
160 void UserCloudPolicyManagerChromeOS::OnComponentCloudPolicyRefreshNeeded() { 166 void UserCloudPolicyManagerChromeOS::OnComponentCloudPolicyRefreshNeeded() {
161 core()->RefreshSoon(); 167 core()->RefreshSoon();
162 } 168 }
163 169
(...skipping 23 matching lines...) Expand all
187 // start the scheduler. The |component_policy_service_| will call back into 193 // start the scheduler. The |component_policy_service_| will call back into
188 // OnComponentCloudPolicyUpdated() once it's ready. 194 // OnComponentCloudPolicyUpdated() once it's ready.
189 return; 195 return;
190 } 196 }
191 197
192 core()->StartRefreshScheduler(); 198 core()->StartRefreshScheduler();
193 core()->TrackRefreshDelayPref(local_state_, prefs::kUserPolicyRefreshRate); 199 core()->TrackRefreshDelayPref(local_state_, prefs::kUserPolicyRefreshRate);
194 } 200 }
195 201
196 } // namespace policy 202 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698