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

Unified Diff: components/policy/core/browser/proxy_policy_handler_unittest.cc

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/browser/proxy_policy_handler_unittest.cc
diff --git a/components/policy/core/browser/proxy_policy_handler_unittest.cc b/components/policy/core/browser/proxy_policy_handler_unittest.cc
index d38c43bc96a4c0e4c5974ed2ea3d1cc5d7d568fa..bfed47dd441ee3db1afb4f438b48f1f597e67b2f 100644
--- a/components/policy/core/browser/proxy_policy_handler_unittest.cc
+++ b/components/policy/core/browser/proxy_policy_handler_unittest.cc
@@ -2,13 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "components/policy/core/browser/proxy_policy_handler.h"
+
+#include <memory>
#include <string>
-#include "base/memory/scoped_ptr.h"
+#include "base/memory/ptr_util.h"
#include "base/values.h"
#include "components/policy/core/browser/configuration_policy_pref_store.h"
#include "components/policy/core/browser/configuration_policy_pref_store_test.h"
-#include "components/policy/core/browser/proxy_policy_handler.h"
#include "components/policy/core/common/policy_service_impl.h"
#include "components/policy/core/common/policy_types.h"
#include "components/proxy_config/proxy_config_dictionary.h"
@@ -25,7 +27,7 @@ class ProxyPolicyHandlerTest
void SetUp() override {
ConfigurationPolicyPrefStoreTest::SetUp();
handler_list_.AddHandler(
- make_scoped_ptr<ConfigurationPolicyHandler>(new ProxyPolicyHandler));
+ base::WrapUnique<ConfigurationPolicyHandler>(new ProxyPolicyHandler));
// Reset the PolicyServiceImpl to one that has the policy fixup
// preprocessor. The previous store must be nulled out first so that it
// removes itself from the service's observer list.
« no previous file with comments | « components/policy/core/browser/proxy_policy_handler.cc ('k') | components/policy/core/browser/url_blacklist_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698