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

Unified Diff: chrome/browser/policy/app_pack_updater.cc

Issue 10916204: Remove FileEnumerator::IsLink (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: replace IsLink in chromeos code Created 8 years, 3 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/browser/policy/app_pack_updater.cc
diff --git a/chrome/browser/policy/app_pack_updater.cc b/chrome/browser/policy/app_pack_updater.cc
index da42337138d82868b980d3ebb0d1ccf3570a910f..20c8be38f04313ceb725f5c40e18e8c541fbfeda 100644
--- a/chrome/browser/policy/app_pack_updater.cc
+++ b/chrome/browser/policy/app_pack_updater.cc
@@ -287,7 +287,8 @@ void AppPackUpdater::BlockingCheckCacheInternal(
enumerator.GetFindInfo(&info);
std::string basename = path.BaseName().value();
- if (FileEnumerator::IsDirectory(info) || FileEnumerator::IsLink(info)) {
+ if (FileEnumerator::IsDirectory(info) ||
+ file_util::IsLink(FileEnumerator::GetFilename(info))) {
LOG(ERROR) << "Erasing bad file in AppPack directory: " << basename;
file_util::Delete(path, true /* recursive */);
continue;

Powered by Google App Engine
This is Rietveld 408576698