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

Unified Diff: base/file_util.cc

Issue 10855002: Change the type of file_type parameter to int, as the parameter actually takes or-ed bitmasks, (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 4 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
Index: base/file_util.cc
diff --git a/base/file_util.cc b/base/file_util.cc
index d536475485645fa0c232ac6017af0c8182569b5f..f5f2ab2fbe5be9de3a14dba46718acb5145d8202 100644
--- a/base/file_util.cc
+++ b/base/file_util.cc
@@ -170,8 +170,7 @@ bool ReadFileToString(const FilePath& path, std::string* contents) {
bool IsDirectoryEmpty(const FilePath& dir_path) {
FileEnumerator files(dir_path, false,
- static_cast<FileEnumerator::FileType>(
- FileEnumerator::FILES | FileEnumerator::DIRECTORIES));
+ (FileEnumerator::FILES | FileEnumerator::DIRECTORIES));
jar (doing other things) 2012/08/06 18:27:02 nit: parens don't seem needed (or add to readabili
if (files.Next().value().empty())
return true;
return false;

Powered by Google App Engine
This is Rietveld 408576698