Index: Source/web/WebDOMFileSystem.cpp |
diff --git a/Source/web/WebDOMFileSystem.cpp b/Source/web/WebDOMFileSystem.cpp |
index 5dde1b9e4b2a6c5b2b67be81bb63c92537eefac5..0ffd8ebf7ad4c3e4739871e556f4094972e6ab54 100644 |
--- a/Source/web/WebDOMFileSystem.cpp |
+++ b/Source/web/WebDOMFileSystem.cpp |
@@ -72,7 +72,7 @@ WebDOMFileSystem WebDOMFileSystem::create( |
SerializableType serializableType) |
{ |
ASSERT(frame && toWebLocalFrameImpl(frame)->frame()); |
- RefPtrWillBeRawPtr<DOMFileSystem> domFileSystem = DOMFileSystem::create(toWebLocalFrameImpl(frame)->frame()->document(), name, static_cast<WebCore::FileSystemType>(type), rootURL); |
+ DOMFileSystem* domFileSystem = DOMFileSystem::create(toWebLocalFrameImpl(frame)->frame()->document(), name, static_cast<WebCore::FileSystemType>(type), rootURL); |
if (serializableType == SerializableTypeSerializable) |
domFileSystem->makeClonable(); |
return WebDOMFileSystem(domFileSystem); |
@@ -139,14 +139,15 @@ v8::Handle<v8::Value> WebDOMFileSystem::createV8Entry( |
return toV8(FileEntry::create(m_private.get(), path), creationContext, isolate); |
} |
-WebDOMFileSystem::WebDOMFileSystem(const PassRefPtrWillBeRawPtr<DOMFileSystem>& domFileSystem) |
- : m_private(domFileSystem) |
+WebDOMFileSystem::WebDOMFileSystem(const DOMFileSystem* domFileSystem) |
tkent
2014/06/10 03:14:22
Please remove |const|.
We should not introduce the
sof
2014/06/10 06:14:35
Removed.
|
+ : m_private(const_cast<DOMFileSystem*>(domFileSystem)) |
{ |
} |
-WebDOMFileSystem& WebDOMFileSystem::operator=(const PassRefPtrWillBeRawPtr<WebCore::DOMFileSystem>& domFileSystem) |
+WebDOMFileSystem& WebDOMFileSystem::operator=(const WebCore::DOMFileSystem* domFileSystem) |
{ |
- m_private = domFileSystem; |
+ // FIXME: Oilpan: WebPrivatePtr<> should be able to handle 'const' pointer assignments. |
+ m_private = const_cast<WebCore::DOMFileSystem*>(domFileSystem); |
return *this; |
} |