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

Unified Diff: Source/platform/exported/WebSecurityOrigin.cpp

Issue 1231643010: Remove 'blink::WebSerializedOrigin' (6/6) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@webnotificationmanager
Patch Set: Created 5 years, 5 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 | « Source/platform/blink_platform.gypi ('k') | Source/platform/exported/WebSerializedOrigin.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/exported/WebSecurityOrigin.cpp
diff --git a/Source/platform/exported/WebSecurityOrigin.cpp b/Source/platform/exported/WebSecurityOrigin.cpp
index adff50986c797d5a537f6fbb7b26afd456f376ae..5ecbb798a964025062cd736e38a787e9d2e584d8 100644
--- a/Source/platform/exported/WebSecurityOrigin.cpp
+++ b/Source/platform/exported/WebSecurityOrigin.cpp
@@ -135,6 +135,11 @@ bool WebSecurityOrigin::canAccessPasswordManager() const
return m_private->canAccessPasswordManager();
}
+WebSecurityOrigin::WebSecurityOrigin(SecurityOrigin* origin)
+ : m_private(static_cast<WebSecurityOriginPrivate*>(origin->isolatedCopy().leakRef()))
Mike West 2015/07/10 14:02:31 This feels a little ugly. If you have suggestions,
Peter Beverloo 2015/07/10 14:27:03 The obvious option would be for ExecutionContext::
+{
+}
+
WebSecurityOrigin::WebSecurityOrigin(const WTF::PassRefPtr<SecurityOrigin>& origin)
: m_private(static_cast<WebSecurityOriginPrivate*>(origin.leakRef()))
{
« no previous file with comments | « Source/platform/blink_platform.gypi ('k') | Source/platform/exported/WebSerializedOrigin.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698