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

Unified Diff: chrome/test/chromedriver/chrome/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 | « chrome/installer/util/shell_util.cc ('k') | chrome/test/perf/frame_rate/frame_rate_tests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/chromedriver/chrome/zip.cc
diff --git a/chrome/test/chromedriver/chrome/zip.cc b/chrome/test/chromedriver/chrome/zip.cc
index 75ea8d4de604847f5b70c2e8b7f8e5982bc83f78..16924e3835aa7cb9a488f3d363c54487a8c77ff9 100644
--- a/chrome/test/chromedriver/chrome/zip.cc
+++ b/chrome/test/chromedriver/chrome/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 | « chrome/installer/util/shell_util.cc ('k') | chrome/test/perf/frame_rate/frame_rate_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698