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

Unified Diff: content/browser/renderer_host/database_message_filter.cc

Issue 7480033: Remove VfsBackend::FileTypeIs{Journal,MainDB} (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | « no previous file | webkit/database/vfs_backend.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/database_message_filter.cc
diff --git a/content/browser/renderer_host/database_message_filter.cc b/content/browser/renderer_host/database_message_filter.cc
index becce16eb95ebbea523417776e8f98d69bf1e629..80c7cfadaf8f6f04a9d3e3d15ed664339fc3be1d 100644
--- a/content/browser/renderer_host/database_message_filter.cc
+++ b/content/browser/renderer_host/database_message_filter.cc
@@ -170,9 +170,7 @@ void DatabaseMessageFilter::OnDatabaseOpenFile(const string16& vfs_file_name,
VfsBackend::OpenFile(db_file,
desired_flags | SQLITE_OPEN_DELETEONCLOSE,
&file_handle);
- if (VfsBackend::FileTypeIsMainDB(desired_flags) ||
- VfsBackend::FileTypeIsJournal(desired_flags))
Scott Hess - ex-Googler 2011/07/27 17:31:38 I took this code to mean that it was whitelisting
Paweł Hajdan Jr. 2011/07/27 17:54:45 Thank you for looking. My reasoning is as follows:
michaeln 2011/07/28 19:32:20 It's not a security-related, just an attempt to re
Paweł Hajdan Jr. 2011/07/29 21:06:34 When switching to sqlite hooks the way I planned w
michaeln 2011/07/30 17:53:07 That change isn't this change. Right now we have t
- db_tracker_->SaveIncognitoFileHandle(vfs_file_name, file_handle);
+ db_tracker_->SaveIncognitoFileHandle(vfs_file_name, file_handle);
}
} else {
VfsBackend::OpenFile(db_file, desired_flags, &file_handle);
« no previous file with comments | « no previous file | webkit/database/vfs_backend.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698