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

Side by Side Diff: chrome/browser/policy/cloud/user_policy_signin_service_android.cc

Issue 23382008: Making OAuth2TokenService multi-login aware, updating callers, minor fixes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing to include the update to ProfileSyncService: r224220 Created 7 years, 3 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 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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698