diff options
author | erg <erg@chromium.org> | 2015-05-29 16:12:44 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-29 23:13:15 +0000 |
commit | 3e8be89d1827aed47a9deeb7d1b6745258c17000 (patch) | |
tree | 88dcc15e556517049ad99dc0f1ac4b48d5d80bb2 /components/filesystem/file_system_impl.cc | |
parent | e7fc725c370336d95752dc446631812053a21dc7 (diff) | |
download | chromium_src-3e8be89d1827aed47a9deeb7d1b6745258c17000.zip chromium_src-3e8be89d1827aed47a9deeb7d1b6745258c17000.tar.gz chromium_src-3e8be89d1827aed47a9deeb7d1b6745258c17000.tar.bz2 |
Mandoline filesystem: Build the filesystem on windows.
This resolves name collisions with #defines in windows.h and does os specific path handling in a few places.
BUG=490237
Review URL: https://codereview.chromium.org/1163713002
Cr-Commit-Position: refs/heads/master@{#332073}
Diffstat (limited to 'components/filesystem/file_system_impl.cc')
-rw-r--r-- | components/filesystem/file_system_impl.cc | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/components/filesystem/file_system_impl.cc b/components/filesystem/file_system_impl.cc index f33aea8..cfd4cac 100644 --- a/components/filesystem/file_system_impl.cc +++ b/components/filesystem/file_system_impl.cc @@ -4,12 +4,6 @@ #include "components/filesystem/file_system_impl.h" -#include <fcntl.h> -#include <stdlib.h> -#include <sys/stat.h> -#include <sys/types.h> -#include <unistd.h> - #include "base/files/file_path.h" #include "base/files/scoped_file.h" #include "base/files/scoped_temp_dir.h" @@ -46,9 +40,9 @@ void FileSystemImpl::OpenFileSystem(const mojo::String& file_system, if (!path.empty()) { new DirectoryImpl(directory.Pass(), path, temp_dir.Pass()); - callback.Run(ERROR_OK); + callback.Run(FILE_ERROR_OK); } else { - callback.Run(ERROR_FAILED); + callback.Run(FILE_ERROR_FAILED); } } |