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

Unified Diff: third_party/WebKit/Source/core/dom/SecurityContext.cpp

Issue 2846843002: [blink] Unique pointers in Platform.h (Closed)
Patch Set: fix compilation (and again) Created 3 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: third_party/WebKit/Source/core/dom/SecurityContext.cpp
diff --git a/third_party/WebKit/Source/core/dom/SecurityContext.cpp b/third_party/WebKit/Source/core/dom/SecurityContext.cpp
index 3dd2133f7dad45de7b0fee13bbc83da20bee959b..e5777d0f73231bbf44226c94b78b9926dd54f1e0 100644
--- a/third_party/WebKit/Source/core/dom/SecurityContext.cpp
+++ b/third_party/WebKit/Source/core/dom/SecurityContext.cpp
@@ -107,15 +107,15 @@ void SecurityContext::InitializeFeaturePolicy(
const WebFeaturePolicy* parent_feature_policy) {
DCHECK(!feature_policy_);
WebSecurityOrigin origin = WebSecurityOrigin(security_origin_);
- feature_policy_.reset(Platform::Current()->CreateFeaturePolicy(
- parent_feature_policy, container_policy, parsed_header, origin));
+ feature_policy_ = Platform::Current()->CreateFeaturePolicy(
+ parent_feature_policy, container_policy, parsed_header, origin);
}
void SecurityContext::UpdateFeaturePolicyOrigin() {
if (!feature_policy_)
return;
- feature_policy_.reset(Platform::Current()->DuplicateFeaturePolicyWithOrigin(
- *feature_policy_, WebSecurityOrigin(security_origin_)));
+ feature_policy_ = Platform::Current()->DuplicateFeaturePolicyWithOrigin(
+ *feature_policy_, WebSecurityOrigin(security_origin_));
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698