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

Unified Diff: content/browser/dom_storage/session_storage_namespace_impl.cc

Issue 20924002: Try to restore window.opener when opening blocked popups (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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
Index: content/browser/dom_storage/session_storage_namespace_impl.cc
diff --git a/content/browser/dom_storage/session_storage_namespace_impl.cc b/content/browser/dom_storage/session_storage_namespace_impl.cc
index fb46a318705e1d74b1b0d2b7ab19ac84df3880f8..aa98519979dfa391b16a9bb2f8340fe49f5b43e5 100644
--- a/content/browser/dom_storage/session_storage_namespace_impl.cc
+++ b/content/browser/dom_storage/session_storage_namespace_impl.cc
@@ -4,6 +4,7 @@
#include "content/browser/dom_storage/session_storage_namespace_impl.h"
+#include "base/logging.h"
#include "content/browser/dom_storage/dom_storage_context_impl.h"
#include "webkit/browser/dom_storage/dom_storage_session.h"
@@ -12,6 +13,16 @@ using dom_storage::DomStorageSession;
namespace content {
+// static
+SessionStorageNamespace*
+SessionStorageNamespace::Clone(DOMStorageContext* context,
Charlie Reis 2013/07/31 17:16:16 Please have Albert review this.
jochen (gone - plz use gerrit) 2013/07/31 18:30:52 Added Albert.
+ SessionStorageNamespace* namespace_to_clone) {
+ CHECK(static_cast<SessionStorageNamespaceImpl*>(namespace_to_clone)->
+ IsFromContext(static_cast<DOMStorageContextImpl*>(context)));
+ return new SessionStorageNamespaceImpl(
+ static_cast<DOMStorageContextImpl*>(context), namespace_to_clone->id());
+}
+
SessionStorageNamespaceImpl::SessionStorageNamespaceImpl(
DOMStorageContextImpl* context)
: session_(new DomStorageSession(context->context())) {

Powered by Google App Engine
This is Rietveld 408576698