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

Unified Diff: tools/android/md5sum/md5sum.cc

Issue 13196006: Move path functions from file_util to FilePath object. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: git try Created 7 years, 8 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: tools/android/md5sum/md5sum.cc
diff --git a/tools/android/md5sum/md5sum.cc b/tools/android/md5sum/md5sum.cc
index a044f0e2d1df2d6432b26524e1ba5d0e5416bfe4..ceee7d51646d4720c58d150120fc28c067e3f4b6 100644
--- a/tools/android/md5sum/md5sum.cc
+++ b/tools/android/md5sum/md5sum.cc
@@ -59,7 +59,7 @@ std::set<std::string> MakeFileSet(const char** files) {
(child = file_enumerator.Next()) != empty; ) {
// If the path contains /.svn/, ignore it.
if (child.value().find(svn_dir_component) == std::string::npos) {
- file_util::AbsolutePath(&child);
+ child = base::MakeAbsoluteFilePath(child);
file_set.insert(child.value());
}
}
@@ -85,8 +85,8 @@ int main(int argc, const char* argv[]) {
if (!MD5Sum(it->c_str(), &digest))
failed = true;
base::FilePath file_path(*it);
- file_util::AbsolutePath(&file_path);
- std::cout << digest << " " << file_path.value() << std::endl;
+ std::cout << digest << " "
+ << base::MakeAbsoluteFilePath(file_path).value() << std::endl;
}
return failed;
}

Powered by Google App Engine
This is Rietveld 408576698