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

Unified Diff: sandbox/linux/seccomp-bpf/util.cc

Issue 10833044: Refactored ErrorCode into it's own class (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Made changes requested by reviewer (jln) Created 8 years, 5 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: sandbox/linux/seccomp-bpf/util.cc
diff --git a/sandbox/linux/seccomp-bpf/util.cc b/sandbox/linux/seccomp-bpf/util.cc
index 3d3233bc216f377850fe248b03f91bd2636690b1..e7537111f97ceab2c58bca54a6bb4361f2cfd3ed 100644
--- a/sandbox/linux/seccomp-bpf/util.cc
+++ b/sandbox/linux/seccomp-bpf/util.cc
@@ -118,7 +118,7 @@ bool Util::getFds(int transport, void *buf, size_t *len, ...) {
void Util::closeAllBut(int fd, ...) {
int proc_fd;
int fdir;
- if ((proc_fd = Sandbox::getProcFd()) < 0 ||
+ if ((proc_fd = Sandbox::proc_fd()) < 0 ||
(fdir = openat(proc_fd, "self/fd", O_RDONLY|O_DIRECTORY)) < 0) {
Sandbox::die("Cannot access \"/proc/self/fd\"");
}

Powered by Google App Engine
This is Rietveld 408576698