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

Unified Diff: webkit/database/vfs_backend.cc

Issue 7234014: Move code to clear web databases on shutdown to the database tracker (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 9 years, 5 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/database/database_tracker_unittest.cc ('k') | webkit/support/simple_database_system.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/database/vfs_backend.cc
diff --git a/webkit/database/vfs_backend.cc b/webkit/database/vfs_backend.cc
index b3879cef47b8f88a4a237dc3de6d6af79e0b481c..774180e26d45c1d1620c1b29d4d016092ce97466 100644
--- a/webkit/database/vfs_backend.cc
+++ b/webkit/database/vfs_backend.cc
@@ -103,6 +103,10 @@ void VfsBackend::OpenFile(const FilePath& file_path,
base::PLATFORM_FILE_DELETE_ON_CLOSE;
}
+ // This flag will allow us to delete the file later on from the browser
+ // process.
+ flags |= base::PLATFORM_FILE_SHARE_DELETE;
+
// Try to open/create the DB file.
*file_handle =
base::CreatePlatformFile(file_path, flags, NULL, NULL);
« no previous file with comments | « webkit/database/database_tracker_unittest.cc ('k') | webkit/support/simple_database_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698