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

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

Issue 511473002: Remove implicit conversions from scoped_refptr to T* in chrome/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move download out 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 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 #ifndef CHROME_BROWSER_POLICY_CLOUD_USER_POLICY_SIGNIN_SERVICE_BASE_H_ 5 #ifndef CHROME_BROWSER_POLICY_CLOUD_USER_POLICY_SIGNIN_SERVICE_BASE_H_
6 #define CHROME_BROWSER_POLICY_CLOUD_USER_POLICY_SIGNIN_SERVICE_BASE_H_ 6 #define CHROME_BROWSER_POLICY_CLOUD_USER_POLICY_SIGNIN_SERVICE_BASE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 virtual void OnClientError(CloudPolicyClient* client) OVERRIDE; 99 virtual void OnClientError(CloudPolicyClient* client) OVERRIDE;
100 100
101 // KeyedService implementation: 101 // KeyedService implementation:
102 virtual void Shutdown() OVERRIDE; 102 virtual void Shutdown() OVERRIDE;
103 103
104 void SetSystemRequestContext( 104 void SetSystemRequestContext(
105 scoped_refptr<net::URLRequestContextGetter> request_context); 105 scoped_refptr<net::URLRequestContextGetter> request_context);
106 106
107 protected: 107 protected:
108 net::URLRequestContextGetter* system_request_context() { 108 net::URLRequestContextGetter* system_request_context() {
109 return system_request_context_; 109 return system_request_context_.get();
110 } 110 }
111 111
112 // Returns a CloudPolicyClient to perform a registration with the DM server, 112 // Returns a CloudPolicyClient to perform a registration with the DM server,
113 // or NULL if |username| shouldn't register for policy management. 113 // or NULL if |username| shouldn't register for policy management.
114 scoped_ptr<CloudPolicyClient> CreateClientForRegistrationOnly( 114 scoped_ptr<CloudPolicyClient> CreateClientForRegistrationOnly(
115 const std::string& username); 115 const std::string& username);
116 116
117 // Returns false if cloud policy is disabled or if the passed |email_address| 117 // Returns false if cloud policy is disabled or if the passed |email_address|
118 // is definitely not from a hosted domain (according to the blacklist in 118 // is definitely not from a hosted domain (according to the blacklist in
119 // BrowserPolicyConnector::IsNonEnterpriseUser()). 119 // BrowserPolicyConnector::IsNonEnterpriseUser()).
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 scoped_refptr<net::URLRequestContextGetter> system_request_context_; 175 scoped_refptr<net::URLRequestContextGetter> system_request_context_;
176 176
177 base::WeakPtrFactory<UserPolicySigninServiceBase> weak_factory_; 177 base::WeakPtrFactory<UserPolicySigninServiceBase> weak_factory_;
178 178
179 DISALLOW_COPY_AND_ASSIGN(UserPolicySigninServiceBase); 179 DISALLOW_COPY_AND_ASSIGN(UserPolicySigninServiceBase);
180 }; 180 };
181 181
182 } // namespace policy 182 } // namespace policy
183 183
184 #endif // CHROME_BROWSER_POLICY_CLOUD_USER_POLICY_SIGNIN_SERVICE_BASE_H_ 184 #endif // CHROME_BROWSER_POLICY_CLOUD_USER_POLICY_SIGNIN_SERVICE_BASE_H_
OLDNEW
« no previous file with comments | « chrome/browser/nacl_host/nacl_browser_delegate_impl.cc ('k') | chrome/browser/profile_resetter/profile_resetter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698