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

Unified Diff: components/policy/core/common/schema_registry_tracking_policy_provider.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/common/schema_registry_tracking_policy_provider.cc
diff --git a/components/policy/core/common/schema_registry_tracking_policy_provider.cc b/components/policy/core/common/schema_registry_tracking_policy_provider.cc
index 95ffaf1574c1d1d632b39408e15e080f77047662..5f15b33fda1b58eb879ddf483affa97df7718fc1 100644
--- a/components/policy/core/common/schema_registry_tracking_policy_provider.cc
+++ b/components/policy/core/common/schema_registry_tracking_policy_provider.cc
@@ -82,7 +82,7 @@ void SchemaRegistryTrackingPolicyProvider::OnUpdatePolicy(
if (state_ == WAITING_FOR_REFRESH)
state_ = READY;
- scoped_ptr<PolicyBundle> bundle(new PolicyBundle());
+ std::unique_ptr<PolicyBundle> bundle(new PolicyBundle());
if (state_ == READY) {
bundle->CopyFrom(delegate_->policies());
schema_map()->FilterBundle(bundle.get());

Powered by Google App Engine
This is Rietveld 408576698