Index: content/renderer/render_view_impl.cc |
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc |
index 22a3a8831d6481beb49639f065e827e457edb2bc..c2e8186778f9679a73af00fe401100d23c23612c 100644 |
--- a/content/renderer/render_view_impl.cc |
+++ b/content/renderer/render_view_impl.cc |
@@ -3678,7 +3678,7 @@ void RenderViewImpl::openFileSystem( |
WebSecurityOrigin origin = frame->document().securityOrigin(); |
if (origin.isUnique()) { |
// Unique origins cannot store persistent state. |
- callbacks->didFail(WebKit::WebFileErrorAbort); |
+ callbacks->didSucceed(); |
kinuko
2012/08/01 05:52:04
hmm why is this changed? (I might be missing some
nhiroki (google)
2012/08/01 20:37:45
Oh... I didn't mean to change. I guess 'git rebase
|
return; |
} |
@@ -3687,6 +3687,25 @@ void RenderViewImpl::openFileSystem( |
size, create, new WebFileSystemCallbackDispatcher(callbacks)); |
} |
+void RenderViewImpl::deleteFileSystem( |
+ WebFrame* frame, |
+ WebFileSystem::Type type , |
+ WebFileSystemCallbacks* callbacks) { |
+ DCHECK(callbacks); |
+ |
+ WebSecurityOrigin origin = frame->document().securityOrigin(); |
+ if (origin.isUnique()) { |
+ // Unique origins cannot store persistent state. |
+ callbacks->didFail(WebKit::WebFileErrorAbort); |
nhiroki (google)
2012/08/01 20:37:45
Ditto. Done.
|
+ return; |
+ } |
+ |
+ ChildThread::current()->file_system_dispatcher()->DeleteFileSystem( |
+ GURL(origin.toString()), |
+ static_cast<fileapi::FileSystemType>(type), |
+ new WebFileSystemCallbackDispatcher(callbacks)); |
+} |
+ |
void RenderViewImpl::queryStorageUsageAndQuota( |
WebFrame* frame, |
WebStorageQuotaType type, |