summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristian Monsen <kristianm@google.com>2010-08-17 16:38:11 +0100
committerKristian Monsen <kristianm@google.com>2010-08-17 16:43:53 +0100
commit754f8e53eaed9e63225b665b8406c3d1072b7905 (patch)
tree899b451dd4bb8f0d58ee291ac13eea446b147598
parent606135ebf06650c5f2be1d453ab6fe1b72aa9921 (diff)
downloadexternal_chromium-754f8e53eaed9e63225b665b8406c3d1072b7905.zip
external_chromium-754f8e53eaed9e63225b665b8406c3d1072b7905.tar.gz
external_chromium-754f8e53eaed9e63225b665b8406c3d1072b7905.tar.bz2
pwrite fixed in bionic so removing local change.
Change-Id: I73494647479ae622a37fab29ad84fc24d9c15de8
-rw-r--r--net/disk_cache/file_posix.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/net/disk_cache/file_posix.cc b/net/disk_cache/file_posix.cc
index 38834a6..05f2cc5 100644
--- a/net/disk_cache/file_posix.cc
+++ b/net/disk_cache/file_posix.cc
@@ -307,11 +307,7 @@ bool File::Write(const void* buffer, size_t buffer_len, size_t offset) {
if (buffer_len > ULONG_MAX || offset > ULONG_MAX)
return false;
-#ifdef ANDROID
- int ret = pwrite(platform_file_, const_cast<void*>(buffer), buffer_len, offset);
-#else
int ret = pwrite(platform_file_, buffer, buffer_len, offset);
-#endif
return (static_cast<size_t>(ret) == buffer_len);
}