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

Unified Diff: webkit/fileapi/sandbox_mount_point_provider.cc

Issue 9419033: Move creation of BrowserContext objects that live in content to content, instead of depending on th… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Fix memory leaks in tests Created 8 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 | « webkit/fileapi/file_system_context.cc ('k') | webkit/quota/quota_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/sandbox_mount_point_provider.cc
===================================================================
--- webkit/fileapi/sandbox_mount_point_provider.cc (revision 122721)
+++ webkit/fileapi/sandbox_mount_point_provider.cc (working copy)
@@ -316,8 +316,11 @@
}
SandboxMountPointProvider::~SandboxMountPointProvider() {
- if (!file_message_loop_->BelongsToCurrentThread())
- file_message_loop_->ReleaseSoon(FROM_HERE, sandbox_file_util_.release());
+ if (!file_message_loop_->BelongsToCurrentThread()) {
+ ObfuscatedFileUtil* sandbox_file_util = sandbox_file_util_.release();
+ if (!file_message_loop_->ReleaseSoon(FROM_HERE, sandbox_file_util))
+ sandbox_file_util->Release();
+ }
}
void SandboxMountPointProvider::ValidateFileSystemRoot(
« no previous file with comments | « webkit/fileapi/file_system_context.cc ('k') | webkit/quota/quota_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698