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

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

Issue 2729623003: TEST ONLY: Duplicate FP rather than modifying in place (Closed)
Patch Set: Rebase against parent CL Created 3 years, 10 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 | « content/common/feature_policy/feature_policy.cc ('k') | third_party/WebKit/public/platform/Platform.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c2d52467b9f1b43d5af3cc0e867b68ce6515166c..19cdd87bc49c1248fdce2ca1001675fe92811451 100644
--- a/third_party/WebKit/Source/core/dom/SecurityContext.cpp
+++ b/third_party/WebKit/Source/core/dom/SecurityContext.cpp
@@ -116,8 +116,8 @@ void SecurityContext::initializeFeaturePolicy(
void SecurityContext::updateFeaturePolicyOrigin() {
if (!m_featurePolicy)
return;
- Platform::current()->resetFeaturePolicyOrigin(
- m_featurePolicy.get(), WebSecurityOrigin(m_securityOrigin));
+ m_featurePolicy.reset(Platform::current()->duplicateFeaturePolicyWithOrigin(
+ *m_featurePolicy, WebSecurityOrigin(m_securityOrigin)));
}
} // namespace blink
« no previous file with comments | « content/common/feature_policy/feature_policy.cc ('k') | third_party/WebKit/public/platform/Platform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698