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

Unified Diff: chrome/installer/util/duplicate_tree_detector.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: Addressed the comments about constant names. 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: chrome/installer/util/duplicate_tree_detector.cc
diff --git a/chrome/installer/util/duplicate_tree_detector.cc b/chrome/installer/util/duplicate_tree_detector.cc
index cc80f0c843aa83eec90c7e8b380986d5ddca2b7c..b8f0c0737ad608ada7ce165a0520c28b40c307fc 100644
--- a/chrome/installer/util/duplicate_tree_detector.cc
+++ b/chrome/installer/util/duplicate_tree_detector.cc
@@ -28,11 +28,8 @@ bool IsIdenticalFileHierarchy(const FilePath& src_path,
// "identical" to all the entries in src_path.
is_identical = true;
- FileEnumerator path_enum(
- src_path,
- false, // Not recursive
- static_cast<FileEnumerator::FileType>(
- FileEnumerator::FILES | FileEnumerator::DIRECTORIES));
+ FileEnumerator path_enum(src_path, false /* not recursive */
+ FileEnumerator::FILES | FileEnumerator::DIRECTORIES);
for (FilePath path = path_enum.Next(); is_identical && !path.empty();
path = path_enum.Next()) {
is_identical =

Powered by Google App Engine
This is Rietveld 408576698