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

Unified Diff: base/files/file_posix.cc

Issue 126453004: Base: Rename File::error() to File::error_details() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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
« no previous file with comments | « base/files/file.cc ('k') | base/files/file_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/files/file_posix.cc
diff --git a/base/files/file_posix.cc b/base/files/file_posix.cc
index e8b4d778b5530cad2054f866df7729a71f9b4064..a37de53280378c13aae9974ed9acccfa4bf259c0 100644
--- a/base/files/file_posix.cc
+++ b/base/files/file_posix.cc
@@ -147,7 +147,7 @@ void File::InitializeUnsafe(const FilePath& name, uint32 flags) {
if (!open_flags && !(flags & FLAG_OPEN) && !(flags & FLAG_OPEN_ALWAYS)) {
NOTREACHED();
errno = EOPNOTSUPP;
- error_ = FILE_ERROR_FAILED;
+ error_details_ = FILE_ERROR_FAILED;
return;
}
@@ -198,9 +198,9 @@ void File::InitializeUnsafe(const FilePath& name, uint32 flags) {
unlink(name.value().c_str());
if (descriptor >= 0)
- error_ = FILE_OK;
+ error_details_ = FILE_OK;
else
- error_ = File::OSErrorToFileError(errno);
+ error_details_ = File::OSErrorToFileError(errno);
file_ = descriptor;
}
« no previous file with comments | « base/files/file.cc ('k') | base/files/file_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698