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

Unified Diff: third_party/WebKit/Source/core/frame/LocalFrame.cpp

Issue 1476953004: Consolidate functions for updating state after a security origin change. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/frame/LocalFrame.cpp
diff --git a/third_party/WebKit/Source/core/frame/LocalFrame.cpp b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
index 3c9a822842050860c71c59fee2e55e14d968e9b6..9d9f8536d57761b8a8a0b2b763ca10ea46c27793 100644
--- a/third_party/WebKit/Source/core/frame/LocalFrame.cpp
+++ b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
@@ -900,14 +900,10 @@ WebFrameScheduler* LocalFrame::frameScheduler()
return m_frameScheduler.get();
}
-void LocalFrame::updateFrameSecurityOrigin()
+void LocalFrame::updateSecurityOrigin(SecurityOrigin* origin)
{
- SecurityContext* context = securityContext();
- if (!context)
- return;
-
- WebSecurityOrigin securityOrigin(context->securityOrigin());
- frameScheduler()->setFrameOrigin(&securityOrigin);
+ script().updateSecurityOrigin(origin);
+ frameScheduler()->setFrameOrigin(WebSecurityOrigin(origin));
}
DEFINE_WEAK_IDENTIFIER_MAP(LocalFrame);

Powered by Google App Engine
This is Rietveld 408576698