summaryrefslogtreecommitdiffstats
path: root/chrome/common/multi_process_lock_mac.cc
diff options
context:
space:
mode:
authorrobert.nagy@gmail.com <robert.nagy@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-11 19:56:35 +0000
committerrobert.nagy@gmail.com <robert.nagy@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-11 19:56:35 +0000
commite60c023a07150052e4aefe6fd95ce5d09fc8767a (patch)
tree94577597f228dd8dce7e5aed8d0f98c3fe2487b8 /chrome/common/multi_process_lock_mac.cc
parent10d7c0e4a5e5e15c0574b9ac4a94a93605c733bd (diff)
downloadchromium_src-e60c023a07150052e4aefe6fd95ce5d09fc8767a.zip
chromium_src-e60c023a07150052e4aefe6fd95ce5d09fc8767a.tar.gz
chromium_src-e60c023a07150052e4aefe6fd95ce5d09fc8767a.tar.bz2
share all the needed linux code with OpenBSD in chrome and content
disabled code for OpenBSD: - AdjustRendererOOMScore() - SECCOMP_SANDBOX BUG= TEST=compile Review URL: http://codereview.chromium.org/8341052 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109679 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/multi_process_lock_mac.cc')
-rw-r--r--chrome/common/multi_process_lock_mac.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/common/multi_process_lock_mac.cc b/chrome/common/multi_process_lock_mac.cc
index 9a9cbe21..8a05b94 100644
--- a/chrome/common/multi_process_lock_mac.cc
+++ b/chrome/common/multi_process_lock_mac.cc
@@ -8,6 +8,8 @@
#include "base/mac/scoped_cftyperef.h"
#include "base/sys_string_conversions.h"
+#include <servers/bootstrap.h>
+
class MultiProcessLockMac : public MultiProcessLock {
public:
explicit MultiProcessLockMac(const std::string& name) : name_(name) { }
@@ -24,9 +26,9 @@ class MultiProcessLockMac : public MultiProcessLock {
return true;
}
- if (name_.length() > MULTI_PROCESS_LOCK_NAME_MAX_LEN) {
+ if (name_.length() >= BOOTSTRAP_MAX_NAME_LEN) {
LOG(ERROR) << "Socket name too long (" << name_.length()
- << " > " << MULTI_PROCESS_LOCK_NAME_MAX_LEN << ") - " << name_;
+ << " >= " << BOOTSTRAP_MAX_NAME_LEN << ") - " << name_;
return false;
}