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

Unified Diff: third_party/zlib/google/zip.cc

Issue 19052005: Move PathIsWritable, DirectoryExists, ContentsEqual, and TextContentsEqual to the base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 | « third_party/leveldatabase/env_chromium.cc ('k') | third_party/zlib/google/zip_reader_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/zlib/google/zip.cc
diff --git a/third_party/zlib/google/zip.cc b/third_party/zlib/google/zip.cc
index 9e2de0d5c308087f2fcdff49e25e5efaba84b6dc..64aead1d64a1edfae35e9d21acb8025c97b151e4 100644
--- a/third_party/zlib/google/zip.cc
+++ b/third_party/zlib/google/zip.cc
@@ -57,7 +57,7 @@ bool AddEntryToZip(zipFile zip_file, const base::FilePath& path,
ReplaceSubstringsAfterOffset(&str_path, 0u, "\\", "/");
#endif
- bool is_directory = file_util::DirectoryExists(path);
+ bool is_directory = base::DirectoryExists(path);
if (is_directory)
str_path += "/";
@@ -127,7 +127,7 @@ bool Unzip(const base::FilePath& src_file, const base::FilePath& dest_dir) {
bool ZipWithFilterCallback(const base::FilePath& src_dir,
const base::FilePath& dest_file,
const FilterCallback& filter_cb) {
- DCHECK(file_util::DirectoryExists(src_dir));
+ DCHECK(base::DirectoryExists(src_dir));
zipFile zip_file = internal::OpenForZipping(dest_file.AsUTF8Unsafe(),
APPEND_STATUS_CREATE);
@@ -175,7 +175,7 @@ bool Zip(const base::FilePath& src_dir, const base::FilePath& dest_file,
bool ZipFiles(const base::FilePath& src_dir,
const std::vector<base::FilePath>& src_relative_paths,
int dest_fd) {
- DCHECK(file_util::DirectoryExists(src_dir));
+ DCHECK(base::DirectoryExists(src_dir));
zipFile zip_file = internal::OpenFdForZipping(dest_fd, APPEND_STATUS_CREATE);
if (!zip_file) {
« no previous file with comments | « third_party/leveldatabase/env_chromium.cc ('k') | third_party/zlib/google/zip_reader_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698