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

Unified Diff: base/files/scoped_temp_dir.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 | « base/files/file_util_proxy.cc ('k') | base/files/scoped_temp_dir_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/files/scoped_temp_dir.cc
diff --git a/base/files/scoped_temp_dir.cc b/base/files/scoped_temp_dir.cc
index 5666ce11423b77965b95a3ef1a1e52bc1f23eacb..3e903497017de33dc9433d403042c6a22bcba439 100644
--- a/base/files/scoped_temp_dir.cc
+++ b/base/files/scoped_temp_dir.cc
@@ -52,8 +52,7 @@ bool ScopedTempDir::Set(const FilePath& path) {
if (!path_.empty())
return false;
- if (!file_util::DirectoryExists(path) &&
- !file_util::CreateDirectory(path))
+ if (!DirectoryExists(path) && !file_util::CreateDirectory(path))
return false;
path_ = path;
@@ -80,7 +79,7 @@ FilePath ScopedTempDir::Take() {
}
bool ScopedTempDir::IsValid() const {
- return !path_.empty() && file_util::DirectoryExists(path_);
+ return !path_.empty() && DirectoryExists(path_);
}
} // namespace base
« no previous file with comments | « base/files/file_util_proxy.cc ('k') | base/files/scoped_temp_dir_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698