diff options
author | dumi@chromium.org <dumi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-14 02:31:54 +0000 |
---|---|---|
committer | dumi@chromium.org <dumi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-14 02:31:54 +0000 |
commit | d578892cb26c7645179ebacd02edeccb2d3ba696 (patch) | |
tree | 19ca5fa68280c1270f0b23b6b0380505b7428cf9 /chrome | |
parent | eab7fb8453045bff23bf7a32ee2b7ef82d01426e (diff) | |
download | chromium_src-d578892cb26c7645179ebacd02edeccb2d3ba696.zip chromium_src-d578892cb26c7645179ebacd02edeccb2d3ba696.tar.gz chromium_src-d578892cb26c7645179ebacd02edeccb2d3ba696.tar.bz2 |
Clean up the last bits of the dirfd parameter that was used by
SQLiteFileSystemChromiumPosix.
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/2087003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47234 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/common/database_util.cc | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/chrome/common/database_util.cc b/chrome/common/database_util.cc index fe196c6..7af72c0 100644 --- a/chrome/common/database_util.cc +++ b/chrome/common/database_util.cc @@ -20,25 +20,15 @@ using WebKit::WebString; WebKitClient::FileHandle DatabaseUtil::databaseOpenFile( const WebString& vfs_file_name, int desired_flags) { - IPC::PlatformFileForTransit file_handle; -#if defined(OS_WIN) - file_handle = base::kInvalidPlatformFileValue; -#elif defined(OS_POSIX) - file_handle = - base::FileDescriptor(base::kInvalidPlatformFileValue, true); -#endif + IPC::PlatformFileForTransit file_handle = + IPC::InvalidPlatformFileForTransit(); scoped_refptr<IPC::SyncMessageFilter> filter = ChildThread::current()->sync_message_filter(); - filter->Send(new ViewHostMsg_DatabaseOpenFile( vfs_file_name, desired_flags, &file_handle)); -#if defined(OS_WIN) - return file_handle; -#elif defined(OS_POSIX) - return file_handle.fd; -#endif + return IPC::PlatformFileForTransitToPlatformFile(file_handle); } int DatabaseUtil::databaseDeleteFile( |