Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(198)

Unified Diff: base/file_util.cc

Issue 796983002: Move file_util to be POSIX-only (Closed) Base URL: https://chromium.googlesource.com/chromium/mini_chromium@string-convert-cast
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/file_util.h ('k') | base/file_util_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/file_util.cc
diff --git a/base/file_util.cc b/base/file_util.cc
deleted file mode 100644
index b524e42e5c7b0c63b0c30d5a9754637ce07d22ba..0000000000000000000000000000000000000000
--- a/base/file_util.cc
+++ /dev/null
@@ -1,26 +0,0 @@
-// Copyright 2006-2008 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "base/file_util.h"
-
-#include <unistd.h>
-
-#include "base/posix/eintr_wrapper.h"
-
-namespace base {
-
-bool ReadFromFD(int fd, char* buffer, size_t bytes) {
- size_t total_read = 0;
- while (total_read < bytes) {
- ssize_t bytes_read =
- HANDLE_EINTR(read(fd, buffer + total_read, bytes - total_read));
- if (bytes_read <= 0) {
- break;
- }
- total_read += bytes_read;
- }
- return total_read == bytes;
-}
-
-} // namespace base
« no previous file with comments | « base/file_util.h ('k') | base/file_util_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698