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

Unified Diff: third_party/crashpad/crashpad/util/mac/xattr.cc

Issue 2277943002: Update Crashpad to b35ee1fca18956f3c27ba124d6dc456a723c7670 (Closed)
Patch Set: fix build.gn Created 4 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: third_party/crashpad/crashpad/util/mac/xattr.cc
diff --git a/third_party/crashpad/crashpad/util/mac/xattr.cc b/third_party/crashpad/crashpad/util/mac/xattr.cc
index 36dfda83198932d6642531e8265dc7d087368a1b..138de3e4b045eae48e424cbad0560e7a66103a50 100644
--- a/third_party/crashpad/crashpad/util/mac/xattr.cc
+++ b/third_party/crashpad/crashpad/util/mac/xattr.cc
@@ -148,4 +148,16 @@ bool WriteXattrTimeT(const base::FilePath& file,
return WriteXattr(file, name, tmp);
}
+XattrStatus RemoveXattr(const base::FilePath& file,
+ const base::StringPiece& name) {
+ int rv = removexattr(file.value().c_str(), name.data(), 0);
+ if (rv != 0) {
+ if (errno == ENOATTR)
+ return XattrStatus::kNoAttribute;
+ PLOG(ERROR) << "removexattr " << name << " on file " << file.value();
+ return XattrStatus::kOtherError;
+ }
+ return XattrStatus::kOK;
+}
+
} // namespace crashpad

Powered by Google App Engine
This is Rietveld 408576698