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

Issue 791493009: Add wrappers around getxattr() and setxattr(). (Closed)

Created:
6 years ago by Robert Sesek
Modified:
5 years, 11 months ago
Reviewers:
Mark Mentovai
CC:
crashpad-dev_chromium.org
Base URL:
https://chromium.googlesource.com/crashpad/crashpad@master
Target Ref:
refs/heads/master
Project:
crashpad
Visibility:
Public.

Description

Add wrappers around getxattr() and setxattr(). R=mark@chromium.org TEST=util_test --gtest_filter=Xattr.* Committed: https://chromium.googlesource.com/crashpad/crashpad/+/8e98c9251a2bfa276e2943eaccbfe1faba955d16

Patch Set 1 #

Patch Set 2 : #

Total comments: 37

Patch Set 3 : Address comments #

Total comments: 11

Patch Set 4 : Address comments #

Total comments: 6

Patch Set 5 : For landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+354 lines, -0 lines) Patch
A util/mac/xattr.h View 1 2 1 chunk +86 lines, -0 lines 0 comments Download
A util/mac/xattr.cc View 1 2 3 4 1 chunk +142 lines, -0 lines 0 comments Download
A util/mac/xattr_test.cc View 1 2 3 1 chunk +123 lines, -0 lines 0 comments Download
M util/util.gyp View 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Robert Sesek
6 years ago (2014-12-19 19:39:54 UTC) #1
Mark Mentovai
https://codereview.chromium.org/791493009/diff/20001/util/mac/xattr.cc File util/mac/xattr.cc (right): https://codereview.chromium.org/791493009/diff/20001/util/mac/xattr.cc#newcode36 util/mac/xattr.cc:36: rv = getxattr(file.value().c_str(), name.data(), &(*value)[0], I don’t like the ...
6 years ago (2014-12-19 23:16:32 UTC) #2
Robert Sesek
https://codereview.chromium.org/791493009/diff/20001/util/mac/xattr.cc File util/mac/xattr.cc (right): https://codereview.chromium.org/791493009/diff/20001/util/mac/xattr.cc#newcode36 util/mac/xattr.cc:36: rv = getxattr(file.value().c_str(), name.data(), &(*value)[0], On 2014/12/19 23:16:32, Mark ...
5 years, 11 months ago (2014-12-30 17:02:21 UTC) #3
Mark Mentovai
LGTM https://codereview.chromium.org/791493009/diff/20001/util/mac/xattr.cc File util/mac/xattr.cc (right): https://codereview.chromium.org/791493009/diff/20001/util/mac/xattr.cc#newcode36 util/mac/xattr.cc:36: rv = getxattr(file.value().c_str(), name.data(), &(*value)[0], On 2014/12/30 17:02:21, ...
5 years, 11 months ago (2014-12-30 19:19:15 UTC) #4
Mark Mentovai
https://codereview.chromium.org/791493009/diff/40001/util/mac/xattr_test.cc File util/mac/xattr_test.cc (right): https://codereview.chromium.org/791493009/diff/40001/util/mac/xattr_test.cc#newcode39 util/mac/xattr_test.cc:39: base::StringPrintf("/tmp/com.googlecode.crashpad.test.xattr.%p", this)); You didn’t use O_EXCL, but I can ...
5 years, 11 months ago (2014-12-30 19:21:51 UTC) #5
Robert Sesek
https://codereview.chromium.org/791493009/diff/40001/util/mac/xattr.cc File util/mac/xattr.cc (right): https://codereview.chromium.org/791493009/diff/40001/util/mac/xattr.cc#newcode33 util/mac/xattr.cc:33: do { On 2014/12/30 19:19:15, Mark Mentovai wrote: > ...
5 years, 11 months ago (2014-12-30 21:59:04 UTC) #6
Mark Mentovai
LGTM https://codereview.chromium.org/791493009/diff/60001/util/mac/xattr.cc File util/mac/xattr.cc (right): https://codereview.chromium.org/791493009/diff/60001/util/mac/xattr.cc#newcode17 util/mac/xattr.cc:17: #include <errno.h> Lose this now. https://codereview.chromium.org/791493009/diff/60001/util/mac/xattr.cc#newcode95 util/mac/xattr.cc:95: return ...
5 years, 11 months ago (2014-12-30 22:36:59 UTC) #7
Robert Sesek
Committed patchset #5 (id:80001) manually as 8e98c9251a2bfa276e2943eaccbfe1faba955d16 (presubmit successful).
5 years, 11 months ago (2014-12-30 22:39:32 UTC) #8
Robert Sesek
5 years, 11 months ago (2014-12-30 22:40:25 UTC) #9
Message was sent while issue was closed.
https://codereview.chromium.org/791493009/diff/60001/util/mac/xattr.cc
File util/mac/xattr.cc (right):

https://codereview.chromium.org/791493009/diff/60001/util/mac/xattr.cc#newcode17
util/mac/xattr.cc:17: #include <errno.h>
On 2014/12/30 22:36:59, Mark Mentovai wrote:
> Lose this now.

Done.

https://codereview.chromium.org/791493009/diff/60001/util/mac/xattr.cc#newcode95
util/mac/xattr.cc:95: return base::StringToInt(tmp, value);
On 2014/12/30 22:36:59, Mark Mentovai wrote:
> If this is false, you should LOG something to maintain the documented
contract.
> base::StringToInt() doesn’t LOG anything on its own.

Done.

https://codereview.chromium.org/791493009/diff/60001/util/mac/xattr.cc#newcod...
util/mac/xattr.cc:116: return false;
On 2014/12/30 22:36:59, Mark Mentovai wrote:
> Same here.

Done.

Powered by Google App Engine
This is Rietveld 408576698