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

Unified Diff: Source/bindings/v8/DOMWrapperWorld.cpp

Issue 163913005: Remove WrapperWorldType from DOMDataStore (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | « Source/bindings/v8/DOMDataStore.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/DOMWrapperWorld.cpp
diff --git a/Source/bindings/v8/DOMWrapperWorld.cpp b/Source/bindings/v8/DOMWrapperWorld.cpp
index 7fb57aedf587822a1aa0d0256aafd1fc3b9b745e..69dca91c87dac2fcccae8bf14e72e9683211faab 100644
--- a/Source/bindings/v8/DOMWrapperWorld.cpp
+++ b/Source/bindings/v8/DOMWrapperWorld.cpp
@@ -56,13 +56,8 @@ PassRefPtr<DOMWrapperWorld> DOMWrapperWorld::create(int worldId, int extensionGr
DOMWrapperWorld::DOMWrapperWorld(int worldId, int extensionGroup)
: m_worldId(worldId)
, m_extensionGroup(extensionGroup)
+ , m_domDataStore(adoptPtr(new DOMDataStore(isMainWorld())))
{
- if (isMainWorld())
- m_domDataStore = adoptPtr(new DOMDataStore(MainWorld));
- else if (isIsolatedWorld())
- m_domDataStore = adoptPtr(new DOMDataStore(IsolatedWorld));
- else if (isWorkerWorld())
- m_domDataStore = adoptPtr(new DOMDataStore(WorkerWorld));
}
DOMWrapperWorld* DOMWrapperWorld::current(v8::Isolate* isolate)
« no previous file with comments | « Source/bindings/v8/DOMDataStore.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698