summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-27 16:58:38 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-27 16:58:38 +0000
commitbe33f8aefab94b842dcea4ad5dc3576c131c928b (patch)
tree89b8d24652a57faea852583287c3565b86bb2e20 /content
parentcd1c78f30089d0486811923405c6d29df02b1bed (diff)
downloadchromium_src-be33f8aefab94b842dcea4ad5dc3576c131c928b.zip
chromium_src-be33f8aefab94b842dcea4ad5dc3576c131c928b.tar.gz
chromium_src-be33f8aefab94b842dcea4ad5dc3576c131c928b.tar.bz2
Remove VfsBackend::FileTypeIs{Journal,MainDB}
Those methods don't seem to be needed, and they are potentially making it more difficult to use system sqlite. This change should not cause any regressions. BUG=22208 Review URL: http://codereview.chromium.org/7480033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94307 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r--content/browser/renderer_host/database_message_filter.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/content/browser/renderer_host/database_message_filter.cc b/content/browser/renderer_host/database_message_filter.cc
index becce16..80c7cfa 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))
- 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);