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

Issue 8382001: OpenBSD patches for base and build, part 2 (Closed)

Created:
9 years, 2 months ago by Robert Nagy
Modified:
9 years, 2 months ago
CC:
chromium-reviews, brettw-cc_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

OpenBSD patches for base and build, part 2 base/base.gyp: - exclude test/test_file_util_linux.cc on OpenBSD because of missing fdatasync() base/base.gypi: - include linux_util.cc on OpenBSD too - exclude some linux specific files from the OpenBSD build because the openbsd implementation is different base/file_util_posix.cc: - Use file_util::GetTempDir directly to get the shm dir on !linux base/sys_info_freebsd.cc: - return 0 and do a NOTREACHED() in case sysctlbyname() fails base/sys_info_openbsd.cc: - cleanup includes - use arraysize() in the sysctl() call - implement SysInfo::MaxSharedMemorySize() build/common.gypi: - -Wno-deprecated is C++ only flag so move it to cflags_cc - Do not exclude linux specific files, dirs on OpenBSD since 90% of it is sharable base/sys_info_linux.cc: - DCHECK if the read string is empty - Use base::StringToInt64() to convert the string to an int64 - DCHECK if the returned int64 is okay for a size_t - call NOTREACHED() and return 0 if fails BUG= TEST=runs on linux? Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=106984

Patch Set 1 #

Total comments: 11

Patch Set 2 : fixes for previous patchset #

Total comments: 6

Patch Set 3 : fixes for previous patchset based on comments #

Patch Set 4 : remove duplicate return #

Total comments: 6

Patch Set 5 : fixes for prev. #

Total comments: 6

Patch Set 6 : fix dcheck and comment #

Patch Set 7 : include <limits> #

Patch Set 8 : remove newline from string #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -12 lines) Patch
M base/base.gyp View 1 chunk +5 lines, -0 lines 0 comments Download
M base/base.gypi View 1 2 2 chunks +6 lines, -4 lines 0 comments Download
M base/file_util_posix.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M base/linux_util.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M base/sys_info_freebsd.cc View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M base/sys_info_linux.cc View 1 2 3 4 5 6 7 2 chunks +17 lines, -4 lines 0 comments Download
M base/sys_info_openbsd.cc View 1 2 3 chunks +13 lines, -1 line 0 comments Download
M build/common.gypi View 1 2 3 4 5 2 chunks +7 lines, -2 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
Robert Nagy
Please review the following patchset. Just some additional information about why I am using the ...
9 years, 2 months ago (2011-10-24 12:30:20 UTC) #1
Mark Mentovai
http://codereview.chromium.org/8382001/diff/1/base/base.gypi File base/base.gypi (right): http://codereview.chromium.org/8382001/diff/1/base/base.gypi#newcode509 base/base.gypi:509: ['include', '^base_paths_linux\\.cc$'], You can get rid of these includes ...
9 years, 2 months ago (2011-10-24 13:43:14 UTC) #2
Robert Nagy
I've also added a patch for base/linux_util.cc since we were not returning anything in the ...
9 years, 2 months ago (2011-10-24 16:26:56 UTC) #3
Mark Mentovai
http://codereview.chromium.org/8382001/diff/1/base/sys_info_openbsd.cc File base/sys_info_openbsd.cc (right): http://codereview.chromium.org/8382001/diff/1/base/sys_info_openbsd.cc#newcode42 base/sys_info_openbsd.cc:42: return 0; Robert Nagy wrote: > On 2011/10/24 13:43:15, ...
9 years, 2 months ago (2011-10-24 17:06:11 UTC) #4
Mark Mentovai
http://codereview.chromium.org/8382001/diff/2003/build/common.gypi File build/common.gypi (right): http://codereview.chromium.org/8382001/diff/2003/build/common.gypi#newcode1251 build/common.gypi:1251: ['OS!="linux" and OS!="openbsd"', { Although we’ve discussed it, this ...
9 years, 2 months ago (2011-10-24 17:11:25 UTC) #5
Robert Nagy
On 2011/10/24 17:06:11, Mark Mentovai wrote: > http://codereview.chromium.org/8382001/diff/1/base/sys_info_openbsd.cc > File base/sys_info_openbsd.cc (right): > > http://codereview.chromium.org/8382001/diff/1/base/sys_info_openbsd.cc#newcode42 ...
9 years, 2 months ago (2011-10-24 18:00:51 UTC) #6
Robert Nagy
http://codereview.chromium.org/8382001/diff/2003/base/base.gypi File base/base.gypi (right): http://codereview.chromium.org/8382001/diff/2003/base/base.gypi#newcode504 base/base.gypi:504: ['exclude', '^files\\/file_path_watcher_linux\\.cc$'], On 2011/10/24 17:06:12, Mark Mentovai wrote: > ...
9 years, 2 months ago (2011-10-24 18:00:57 UTC) #7
Robert Nagy
updated issue description
9 years, 2 months ago (2011-10-24 18:03:52 UTC) #8
Mark Mentovai
http://codereview.chromium.org/8382001/diff/4004/base/file_util_posix.cc File base/file_util_posix.cc (right): http://codereview.chromium.org/8382001/diff/4004/base/file_util_posix.cc#newcode918 base/file_util_posix.cc:918: file_util::GetTempDir(path); It would be a good idea to structure ...
9 years, 2 months ago (2011-10-24 18:09:58 UTC) #9
Robert Nagy
http://codereview.chromium.org/8382001/diff/4004/base/file_util_posix.cc File base/file_util_posix.cc (right): http://codereview.chromium.org/8382001/diff/4004/base/file_util_posix.cc#newcode918 base/file_util_posix.cc:918: file_util::GetTempDir(path); On 2011/10/24 18:09:58, Mark Mentovai wrote: > It ...
9 years, 2 months ago (2011-10-24 18:20:17 UTC) #10
Mark Mentovai
http://codereview.chromium.org/8382001/diff/1009/base/sys_info_linux.cc File base/sys_info_linux.cc (right): http://codereview.chromium.org/8382001/diff/1009/base/sys_info_linux.cc#newcode34 base/sys_info_linux.cc:34: DCHECK(static_cast<size_t>(limit) <= sizeof(limit)); You didn’t really mean sizeof, did ...
9 years, 2 months ago (2011-10-24 18:51:55 UTC) #11
Robert Nagy
http://codereview.chromium.org/8382001/diff/1009/base/sys_info_linux.cc File base/sys_info_linux.cc (right): http://codereview.chromium.org/8382001/diff/1009/base/sys_info_linux.cc#newcode34 base/sys_info_linux.cc:34: DCHECK(static_cast<size_t>(limit) <= sizeof(limit)); On 2011/10/24 18:51:55, Mark Mentovai wrote: ...
9 years, 2 months ago (2011-10-24 19:30:20 UTC) #12
Mark Mentovai
LGTM and CQ.
9 years, 2 months ago (2011-10-24 19:33:41 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/robert.nagy@gmail.com/8382001/10003
9 years, 2 months ago (2011-10-24 19:33:56 UTC) #14
Mark Mentovai
LGTM and CQ again.
9 years, 2 months ago (2011-10-24 19:44:11 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/robert.nagy@gmail.com/8382001/2014
9 years, 2 months ago (2011-10-24 19:44:24 UTC) #16
Mark Mentovai
LGTM and CQ v3.0
9 years, 2 months ago (2011-10-24 20:39:55 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/robert.nagy@gmail.com/8382001/9
9 years, 2 months ago (2011-10-24 20:40:06 UTC) #18
commit-bot: I haz the power
9 years, 2 months ago (2011-10-24 22:05:29 UTC) #19
Change committed as 106984

Powered by Google App Engine
This is Rietveld 408576698