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

Unified Diff: components/policy/core/common/cloud/cloud_policy_client_unittest.cc

Issue 514143002: Manual fixups in components/policy for scoped_refptr operator T* removal (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . 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_unittest.cc
diff --git a/components/policy/core/common/cloud/cloud_policy_client_unittest.cc b/components/policy/core/common/cloud/cloud_policy_client_unittest.cc
index e9976048921ece2697114b953a5d96c15235b7fa..1a5c9c80000e42e7bc8379439be4e5a35b7b52b6 100644
--- a/components/policy/core/common/cloud/cloud_policy_client_unittest.cc
+++ b/components/policy/core/common/cloud/cloud_policy_client_unittest.cc
@@ -204,8 +204,8 @@ class CloudPolicyClientTest : public testing::Test {
StrictMock<MockCloudPolicyClientObserver> observer_;
StrictMock<MockUploadCertificateObserver> upload_certificate_observer_;
scoped_ptr<CloudPolicyClient> client_;
- // Cached weak pointer to the client's request context.
- net::URLRequestContextGetter* request_context_;
+ // Pointer to the client's request context.
+ scoped_refptr<net::URLRequestContextGetter> request_context_;
bartfab (slow) 2014/08/29 09:42:38 Nit: #include "base/memory/ref_counted.h"
dcheng 2014/08/29 09:56:37 Done.
};
TEST_F(CloudPolicyClientTest, Init) {

Powered by Google App Engine
This is Rietveld 408576698