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

Unified Diff: base/files/file_posix.cc

Issue 323683002: net: FileStream cleanup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months 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
Index: base/files/file_posix.cc
diff --git a/base/files/file_posix.cc b/base/files/file_posix.cc
index ad747d9582e2a4640ecf93a38c86b89beb7eaa2c..4b2524228f870379d35022a86eb7e8cc7a605068 100644
--- a/base/files/file_posix.cc
+++ b/base/files/file_posix.cc
@@ -279,8 +279,6 @@ void File::Close() {
int64 File::Seek(Whence whence, int64 offset) {
base::ThreadRestrictions::AssertIOAllowed();
DCHECK(IsValid());
- if (offset < 0)
- return -1;
return lseek(file_.get(), static_cast<off_t>(offset),
static_cast<int>(whence));
« no previous file with comments | « no previous file | base/files/file_unittest.cc » ('j') | chrome/browser/extensions/api/messaging/native_message_process_host.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698