summaryrefslogtreecommitdiffstats
path: root/base/platform_file_posix.cc
diff options
context:
space:
mode:
authormaruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-23 19:39:10 +0000
committermaruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-23 19:39:10 +0000
commit8d60757991fd8e74e2d6d8a25912d24c47e9a421 (patch)
treedc406e291ef6aade6c98402b91bc1946c9952b2d /base/platform_file_posix.cc
parenta5d1e1e2cf6deb70a8476fd1f970c697274cbca7 (diff)
downloadchromium_src-8d60757991fd8e74e2d6d8a25912d24c47e9a421.zip
chromium_src-8d60757991fd8e74e2d6d8a25912d24c47e9a421.tar.gz
chromium_src-8d60757991fd8e74e2d6d8a25912d24c47e9a421.tar.bz2
Revert "Add a TouchFile function that operates on FilePaths + fixing a bug"
This reverts commit 60322. TBR=dumi TEST=none BUG=none Review URL: http://codereview.chromium.org/3439019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60327 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/platform_file_posix.cc')
-rw-r--r--base/platform_file_posix.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/base/platform_file_posix.cc b/base/platform_file_posix.cc
index 9b1ce17..1d8ef4c 100644
--- a/base/platform_file_posix.cc
+++ b/base/platform_file_posix.cc
@@ -52,8 +52,7 @@ PlatformFile CreatePlatformFile(const FilePath& name, int flags,
if (flags & PLATFORM_FILE_WRITE && flags & PLATFORM_FILE_READ) {
open_flags |= O_RDWR;
- } else if (flags & PLATFORM_FILE_WRITE ||
- flags & PLATFORM_FILE_WRITE_ATTRIBUTES) {
+ } else if (flags & PLATFORM_FILE_WRITE) {
open_flags |= O_WRONLY;
} else if (!(flags & PLATFORM_FILE_READ)) {
NOTREACHED();