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

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: Address nits 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
« no previous file with comments | « no previous file | components/policy/core/common/cloud/device_management_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..d6e3655d98249b051830694dc77edee53bccb5ee 100644
--- a/components/policy/core/common/cloud/cloud_policy_client_unittest.cc
+++ b/components/policy/core/common/cloud/cloud_policy_client_unittest.cc
@@ -9,6 +9,7 @@
#include "base/bind.h"
#include "base/compiler_specific.h"
+#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/message_loop/message_loop.h"
#include "components/policy/core/common/cloud/mock_cloud_policy_client.h"
@@ -204,8 +205,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_;
};
TEST_F(CloudPolicyClientTest, Init) {
« no previous file with comments | « no previous file | components/policy/core/common/cloud/device_management_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698