From b55f078e46c672a91324c55a7bb885dab20ab345 Mon Sep 17 00:00:00 2001 From: "dumi@chromium.org" Date: Mon, 25 Oct 2010 21:16:54 +0000 Subject: Fix some FileRef-related issues that show up only on POSIX. BUG=none TEST=PPAAPITest.{FileRef|FileIO} pass Review URL: http://codereview.chromium.org/4034001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63784 0039d316-1c4b-4281-b951-d872f2087c98 --- base/platform_file_posix.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'base/platform_file_posix.cc') diff --git a/base/platform_file_posix.cc b/base/platform_file_posix.cc index 4d2ac46..52b14fc 100644 --- a/base/platform_file_posix.cc +++ b/base/platform_file_posix.cc @@ -54,8 +54,9 @@ PlatformFile CreatePlatformFile(const FilePath& name, int flags, open_flags |= O_RDWR; } else if (flags & PLATFORM_FILE_WRITE) { open_flags |= O_WRONLY; - } else if (!(flags & PLATFORM_FILE_READ || - flags & PLATFORM_FILE_WRITE_ATTRIBUTES)) { + } else if (!(flags & PLATFORM_FILE_READ) && + !(flags & PLATFORM_FILE_WRITE_ATTRIBUTES) && + !(flags & PLATFORM_FILE_OPEN_ALWAYS)) { NOTREACHED(); } -- cgit v1.1