Index: webkit/browser/fileapi/file_system_context.cc |
diff --git a/webkit/browser/fileapi/file_system_context.cc b/webkit/browser/fileapi/file_system_context.cc |
index 88abd24920acfa54591a17aa53237a678a27da09..d43ba8a846e5fcea40ed180dd0a1d2a4d376764b 100644 |
--- a/webkit/browser/fileapi/file_system_context.cc |
+++ b/webkit/browser/fileapi/file_system_context.cc |
@@ -174,6 +174,16 @@ bool FileSystemContext::DeleteDataForOriginOnFileThread( |
return success; |
} |
+void FileSystemContext::Shutdown() { |
+ if (!io_task_runner_->RunsTasksOnCurrentThread()) { |
+ io_task_runner_->PostTask( |
+ FROM_HERE, base::Bind(&FileSystemContext::Shutdown, |
+ make_scoped_refptr(this))); |
+ return; |
+ } |
+ operation_runner_->Shutdown(); |
+} |
+ |
FileSystemQuotaUtil* |
FileSystemContext::GetQuotaUtil(FileSystemType type) const { |
FileSystemBackend* backend = GetFileSystemBackend(type); |