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

Unified Diff: components/policy/core/common/cloud/cloud_policy_client_registration_helper.h

Issue 506633004: Remove implicit conversions from scoped_refptr to T* in components/policy/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Some more changes Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: components/policy/core/common/cloud/cloud_policy_client_registration_helper.h
diff --git a/components/policy/core/common/cloud/cloud_policy_client_registration_helper.h b/components/policy/core/common/cloud/cloud_policy_client_registration_helper.h
index 721282aad478e450f0b305104dcd9f7f31a8de04..81f10f01f53d975905857bc56b480c809b0c5093 100644
--- a/components/policy/core/common/cloud/cloud_policy_client_registration_helper.h
+++ b/components/policy/core/common/cloud/cloud_policy_client_registration_helper.h
@@ -11,6 +11,7 @@
#include "base/basictypes.h"
#include "base/callback.h"
#include "base/compiler_specific.h"
+#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "components/policy/core/common/cloud/cloud_policy_client.h"
#include "components/policy/core/common/cloud/user_info_fetcher.h"
@@ -107,7 +108,7 @@ class POLICY_EXPORT CloudPolicyClientRegistrationHelper
// GAIA to get information about the signed in user.
std::string oauth_access_token_;
- net::URLRequestContextGetter* context_;
+ scoped_refptr<net::URLRequestContextGetter> context_;
CloudPolicyClient* client_;
enterprise_management::DeviceRegisterRequest::Type registration_type_;
base::Closure callback_;

Powered by Google App Engine
This is Rietveld 408576698