| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/user_policy_signin_service_android.h" | 5 #include "chrome/browser/policy/cloud/user_policy_signin_service_android.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 "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 return enterprise_management::DeviceRegisterRequest::ANDROID_BROWSER; | 34 return enterprise_management::DeviceRegisterRequest::ANDROID_BROWSER; |
| 35 } | 35 } |
| 36 | 36 |
| 37 } // namespace | 37 } // namespace |
| 38 | 38 |
| 39 UserPolicySigninService::UserPolicySigninService( | 39 UserPolicySigninService::UserPolicySigninService( |
| 40 Profile* profile, | 40 Profile* profile, |
| 41 PrefService* local_state, | 41 PrefService* local_state, |
| 42 scoped_refptr<net::URLRequestContextGetter> request_context, | 42 scoped_refptr<net::URLRequestContextGetter> request_context, |
| 43 DeviceManagementService* device_management_service, | 43 DeviceManagementService* device_management_service, |
| 44 AndroidProfileOAuth2TokenService* token_service) | 44 ProfileOAuth2TokenService* token_service) |
| 45 : UserPolicySigninServiceBase(profile, | 45 : UserPolicySigninServiceBase(profile, |
| 46 local_state, | 46 local_state, |
| 47 request_context, | 47 request_context, |
| 48 device_management_service), | 48 device_management_service), |
| 49 weak_factory_(this), | 49 weak_factory_(this), |
| 50 oauth2_token_service_(token_service) {} | 50 oauth2_token_service_(token_service) {} |
| 51 | 51 |
| 52 UserPolicySigninService::~UserPolicySigninService() {} | 52 UserPolicySigninService::~UserPolicySigninService() {} |
| 53 | 53 |
| 54 void UserPolicySigninService::RegisterPolicyClient( | 54 void UserPolicySigninService::RegisterPolicyClient( |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 | 165 |
| 166 void UserPolicySigninService::CancelPendingRegistration() { | 166 void UserPolicySigninService::CancelPendingRegistration() { |
| 167 weak_factory_.InvalidateWeakPtrs(); | 167 weak_factory_.InvalidateWeakPtrs(); |
| 168 } | 168 } |
| 169 | 169 |
| 170 void UserPolicySigninService::OnRegistrationDone() { | 170 void UserPolicySigninService::OnRegistrationDone() { |
| 171 registration_helper_.reset(); | 171 registration_helper_.reset(); |
| 172 } | 172 } |
| 173 | 173 |
| 174 } // namespace policy | 174 } // namespace policy |
| OLD | NEW |