From e60c023a07150052e4aefe6fd95ce5d09fc8767a Mon Sep 17 00:00:00 2001 From: "robert.nagy@gmail.com" Date: Fri, 11 Nov 2011 19:56:35 +0000 Subject: 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 --- chrome/common/multi_process_lock_mac.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'chrome/common/multi_process_lock_mac.cc') 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 + 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; } -- cgit v1.1