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/user_policy_signin_service.h" | 5 #include "chrome/browser/policy/user_policy_signin_service.h" |
6 | 6 |
7 #include "chrome/browser/browser_process.h" | 7 #include "chrome/browser/browser_process.h" |
8 #include "chrome/browser/policy/browser_policy_connector.h" | 8 #include "chrome/browser/policy/browser_policy_connector.h" |
9 #include "chrome/browser/policy/cloud_policy_service.h" | 9 #include "chrome/browser/policy/cloud_policy_service.h" |
10 #include "chrome/browser/policy/user_cloud_policy_manager.h" | 10 #include "chrome/browser/policy/user_cloud_policy_manager.h" |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 | 168 |
169 void UserPolicySigninService::OnGetTokenSuccess( | 169 void UserPolicySigninService::OnGetTokenSuccess( |
170 const std::string& access_token, | 170 const std::string& access_token, |
171 const base::Time& expiration_time) { | 171 const base::Time& expiration_time) { |
172 // Pass along the new access token to the CloudPolicyClient. | 172 // Pass along the new access token to the CloudPolicyClient. |
173 manager_->RegisterClient(access_token); | 173 manager_->RegisterClient(access_token); |
174 oauth2_access_token_fetcher_.reset(); | 174 oauth2_access_token_fetcher_.reset(); |
175 } | 175 } |
176 | 176 |
177 } // namespace policy | 177 } // namespace policy |
OLD | NEW |