| Index: base/files/file.cc
|
| diff --git a/base/files/file.cc b/base/files/file.cc
|
| index cd167b16074ec2ff98dbaa4a99a6ae1412c06c30..2a2f84330ea9b4e32050ff9e1d2fca0200037086 100644
|
| --- a/base/files/file.cc
|
| +++ b/base/files/file.cc
|
| @@ -20,7 +20,7 @@ File::Info::~Info() {
|
|
|
| File::File()
|
| : file_(kInvalidPlatformFileValue),
|
| - error_details_(FILE_OK),
|
| + error_details_(FILE_ERROR_FAILED),
|
| created_(false),
|
| async_(false) {
|
| }
|
| @@ -45,6 +45,13 @@ File::File(PlatformFile platform_file)
|
| #endif
|
| }
|
|
|
| +File::File(Error error_details)
|
| + : file_(kInvalidPlatformFileValue),
|
| + error_details_(error_details),
|
| + created_(false),
|
| + async_(false) {
|
| +}
|
| +
|
| File::File(RValue other)
|
| : file_(other.object->TakePlatformFile()),
|
| error_details_(other.object->error_details()),
|
|
|