diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-06 20:42:30 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-06 20:42:30 +0000 |
commit | e5c2a22eb106e0fef92bbf80ac8bf2429980cc4e (patch) | |
tree | 480bf91e3cf64d69f837a2f22f8fc868bf17dfdc /courgette | |
parent | 06b1d42b0ceadd4a70b7462c5c7e6adeb5a18ca4 (diff) | |
download | chromium_src-e5c2a22eb106e0fef92bbf80ac8bf2429980cc4e.zip chromium_src-e5c2a22eb106e0fef92bbf80ac8bf2429980cc4e.tar.gz chromium_src-e5c2a22eb106e0fef92bbf80ac8bf2429980cc4e.tar.bz2 |
Move WriteFile and WriteFileDescriptor from file_util to base namespace.
R=viettrungluu@chromium.org
TBR=viettrungluu
Review URL: https://codereview.chromium.org/184563006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@255418 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'courgette')
-rw-r--r-- | courgette/courgette_tool.cc | 2 | ||||
-rw-r--r-- | courgette/ensemble_apply.cc | 2 | ||||
-rw-r--r-- | courgette/third_party/bsdiff_apply.cc | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/courgette/courgette_tool.cc b/courgette/courgette_tool.cc index 3b5b5e6..23322fd 100644 --- a/courgette/courgette_tool.cc +++ b/courgette/courgette_tool.cc @@ -61,7 +61,7 @@ std::string ReadOrFail(const base::FilePath& file_name, const char* kind) { void WriteSinkToFile(const courgette::SinkStream *sink, const base::FilePath& output_file) { int count = - file_util::WriteFile(output_file, + base::WriteFile(output_file, reinterpret_cast<const char*>(sink->Buffer()), static_cast<int>(sink->Length())); if (count == -1) diff --git a/courgette/ensemble_apply.cc b/courgette/ensemble_apply.cc index be3618b..967b4e4 100644 --- a/courgette/ensemble_apply.cc +++ b/courgette/ensemble_apply.cc @@ -416,7 +416,7 @@ Status ApplyEnsemblePatch(const base::FilePath::CharType* old_file_name, // Write the patched data to |new_file_name|. base::FilePath new_file_path(new_file_name); int written = - file_util::WriteFile( + base::WriteFile( new_file_path, reinterpret_cast<const char*>(new_sink_stream.Buffer()), static_cast<int>(new_sink_stream.Length())); diff --git a/courgette/third_party/bsdiff_apply.cc b/courgette/third_party/bsdiff_apply.cc index 3ed346e..435acc0 100644 --- a/courgette/third_party/bsdiff_apply.cc +++ b/courgette/third_party/bsdiff_apply.cc @@ -200,7 +200,7 @@ BSDiffStatus ApplyBinaryPatch(const base::FilePath& old_file_path, } // Write the stream to disk. - int written = file_util::WriteFile( + int written = base::WriteFile( new_file_path, reinterpret_cast<const char*>(new_sink_stream.Buffer()), static_cast<int>(new_sink_stream.Length())); |