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

Unified Diff: content/child/fileapi/webfilesystem_impl.cc

Issue 270633009: [FileAPI] Clean up WebFileSystemImpl before Blink shutdown (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: +clean up on RenderThreadImpl Created 6 years, 7 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 | « no previous file | content/renderer/render_thread_impl.cc » ('j') | content/renderer/render_thread_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/fileapi/webfilesystem_impl.cc
diff --git a/content/child/fileapi/webfilesystem_impl.cc b/content/child/fileapi/webfilesystem_impl.cc
index 62e9f0eda62f8f94b220f912c0a08585cebf20a7..9c4403a4170df850e2e6c8d8f657d9b6e9291e7d 100644
--- a/content/child/fileapi/webfilesystem_impl.cc
+++ b/content/child/fileapi/webfilesystem_impl.cc
@@ -342,8 +342,10 @@ WebFileSystemImpl* WebFileSystemImpl::ThreadSpecificInstance(
void WebFileSystemImpl::DeleteThreadSpecificInstance() {
DCHECK(!WorkerTaskRunner::Instance()->CurrentWorkerId());
- if (g_webfilesystem_tls.Pointer()->Get())
+ if (g_webfilesystem_tls.Pointer()->Get()) {
delete g_webfilesystem_tls.Pointer()->Get();
+ g_webfilesystem_tls.Pointer()->Set(NULL);
kinuko 2014/05/08 07:44:09 Don't we do this in WebFileSystemImpl dtor?
tzik 2014/05/08 08:05:30 Ah, yes, it's done in it. Reverted.
+ }
}
WebFileSystemImpl::WebFileSystemImpl(base::MessageLoopProxy* main_thread_loop)
« no previous file with comments | « no previous file | content/renderer/render_thread_impl.cc » ('j') | content/renderer/render_thread_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698