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

Side by Side Diff: chrome/browser/policy/cloud/user_policy_signin_service_mobile.h

Issue 575993002: Fix WeakPtrFactory member ordering in chrome/browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_POLICY_CLOUD_USER_POLICY_SIGNIN_SERVICE_MOBILE_H_ 5 #ifndef CHROME_BROWSER_POLICY_CLOUD_USER_POLICY_SIGNIN_SERVICE_MOBILE_H_
6 #define CHROME_BROWSER_POLICY_CLOUD_USER_POLICY_SIGNIN_SERVICE_MOBILE_H_ 6 #define CHROME_BROWSER_POLICY_CLOUD_USER_POLICY_SIGNIN_SERVICE_MOBILE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 85
86 // Registers for cloud policy for an already signed-in user. 86 // Registers for cloud policy for an already signed-in user.
87 void RegisterCloudPolicyService(); 87 void RegisterCloudPolicyService();
88 88
89 // Cancels a pending cloud policy registration attempt. 89 // Cancels a pending cloud policy registration attempt.
90 void CancelPendingRegistration(); 90 void CancelPendingRegistration();
91 91
92 void OnRegistrationDone(); 92 void OnRegistrationDone();
93 93
94 scoped_ptr<CloudPolicyClientRegistrationHelper> registration_helper_; 94 scoped_ptr<CloudPolicyClientRegistrationHelper> registration_helper_;
95 base::WeakPtrFactory<UserPolicySigninService> weak_factory_;
96 95
97 // Weak pointer to the token service used to authenticate the 96 // Weak pointer to the token service used to authenticate the
98 // CloudPolicyClient during registration. 97 // CloudPolicyClient during registration.
99 ProfileOAuth2TokenService* oauth2_token_service_; 98 ProfileOAuth2TokenService* oauth2_token_service_;
100 99
101 // The PrefService associated with the profile. 100 // The PrefService associated with the profile.
102 PrefService* profile_prefs_; 101 PrefService* profile_prefs_;
103 102
103 base::WeakPtrFactory<UserPolicySigninService> weak_factory_;
104
104 DISALLOW_COPY_AND_ASSIGN(UserPolicySigninService); 105 DISALLOW_COPY_AND_ASSIGN(UserPolicySigninService);
105 }; 106 };
106 107
107 } // namespace policy 108 } // namespace policy
108 109
109 #endif // CHROME_BROWSER_POLICY_CLOUD_USER_POLICY_SIGNIN_SERVICE_MOBILE_H_ 110 #endif // CHROME_BROWSER_POLICY_CLOUD_USER_POLICY_SIGNIN_SERVICE_MOBILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698