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

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

Issue 1902633006: Convert //components/policy from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments and use namespace alias Created 4 years, 8 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/system_policy_request_context.h
diff --git a/components/policy/core/common/cloud/system_policy_request_context.h b/components/policy/core/common/cloud/system_policy_request_context.h
index 7aaeeda779817e868bbf1769de814ddeb7958df3..d546aba54c1a09d48c77520c8418628b3464ccd8 100644
--- a/components/policy/core/common/cloud/system_policy_request_context.h
+++ b/components/policy/core/common/cloud/system_policy_request_context.h
@@ -2,8 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <memory>
+
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "components/policy/policy_export.h"
#include "net/url_request/static_http_user_agent_settings.h"
#include "net/url_request/url_request_context_getter.h"
@@ -37,14 +38,14 @@ class POLICY_EXPORT SystemPolicyRequestContext
scoped_refptr<net::URLRequestContextGetter> system_context_getter_;
// HttpNetworkLayer associated with |context_|.
- scoped_ptr<net::HttpNetworkLayer> http_transaction_factory_;
+ std::unique_ptr<net::HttpNetworkLayer> http_transaction_factory_;
- scoped_ptr<net::CookieStore> cookie_store_;
+ std::unique_ptr<net::CookieStore> cookie_store_;
net::StaticHttpUserAgentSettings http_user_agent_settings_;
// The lazy-initialized URLRequestContext associated with this getter.
- scoped_ptr<net::URLRequestContext> context_;
+ std::unique_ptr<net::URLRequestContext> context_;
DISALLOW_COPY_AND_ASSIGN(SystemPolicyRequestContext);
};

Powered by Google App Engine
This is Rietveld 408576698