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

Issue 774001: BSD port changes for base/ (OS_POSIX/GTK instead of OS_LINUX... (Closed)

Created:
10 years, 9 months ago by Peter Valchev
Modified:
9 years, 7 months ago
Reviewers:
Evan Martin
CC:
chromium-reviews, John Grabowski, pam+watch_chromium.org, brettw+cc_chromium.org
Visibility:
Public.

Description

BSD port changes for base/ (OS_POSIX/GTK instead of OS_LINUX where applicable, missing includes, etc) Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=41143

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 12

Patch Set 3 : '' #

Total comments: 2

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -16 lines) Patch
M base/base.gypi View 3 chunks +3 lines, -3 lines 0 comments Download
base/file_util_posix.cc View 1 chunk +1 line, -1 line 0 comments Download
M base/linux_util.cc View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M base/process_posix.cc View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M base/process_util.h View 1 2 1 chunk +3 lines, -5 lines 0 comments Download
M base/process_util_posix.cc View 1 2 2 chunks +5 lines, -4 lines 0 comments Download
M base/sys_info_openbsd.cc View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
base/time_posix.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
Peter Valchev
10 years, 9 months ago (2010-03-09 23:20:44 UTC) #1
Evan Martin
http://codereview.chromium.org/774001/diff/9001/10005 File base/file_util_posix.cc (right): http://codereview.chromium.org/774001/diff/9001/10005#newcode42 base/file_util_posix.cc:42: #if defined(OS_OPENBSD) || defined(OS_FREEBSD) || \ no 64-bit stat? ...
10 years, 9 months ago (2010-03-09 23:24:57 UTC) #2
Peter Valchev
http://codereview.chromium.org/774001/diff/9001/10005 File base/file_util_posix.cc (right): http://codereview.chromium.org/774001/diff/9001/10005#newcode42 base/file_util_posix.cc:42: #if defined(OS_OPENBSD) || defined(OS_FREEBSD) || \ On 2010/03/09 23:24:57, ...
10 years, 9 months ago (2010-03-09 23:39:11 UTC) #3
Evan Martin
http://codereview.chromium.org/774001/diff/18001/19007 File base/linux_util.cc (right): http://codereview.chromium.org/774001/diff/18001/19007#newcode204 base/linux_util.cc:204: #elif defined(OS_LINUX) I still don't think this compiles, because ...
10 years, 9 months ago (2010-03-09 23:50:29 UTC) #4
Peter Valchev
http://codereview.chromium.org/774001/diff/18001/19007 File base/linux_util.cc (right): http://codereview.chromium.org/774001/diff/18001/19007#newcode204 base/linux_util.cc:204: #elif defined(OS_LINUX) On 2010/03/09 23:50:29, Evan Martin wrote: > ...
10 years, 9 months ago (2010-03-09 23:55:57 UTC) #5
Evan Martin
On 2010/03/09 23:55:57, Peter Valchev wrote: > OK I just checked my build log and ...
10 years, 9 months ago (2010-03-09 23:59:06 UTC) #6
Peter Valchev
10 years, 9 months ago (2010-03-10 07:48:30 UTC) #7
On 2010/03/09 23:59:06, Evan Martin wrote:
> On 2010/03/09 23:55:57, Peter Valchev wrote:
> > OK I just checked my build log and it does show a warning, and we don't use
> > -Werror on *BSD
> > 
> > base/linux_util.cc: In function 'std::string base::GetLinuxDistro()':^M
> > base/linux_util.cc:235: warning: control reaches end of non-void function^M
> > 
> > How about I just modify it to return "" ? But I do know this is all hackish.
> So
> > I'd say we should leave it as-is for now since it doesn't affect
> > Linux/MacOS/Windows and doesn't make the code any uglier than it is.
> 
> That seems ok.  You can also do #else NOTIMPLEMENTED(), which prints out a
> warning message with a line number at runtime.  I worry that not returning
> anything may cause a crash or something, but maybe C++ is clever enough to use
> the default ctor or something.

I added the NOTIMPLEMENTED() and committed it. Thanks so much!

> 
> > Long term I do think we should clean stuff like this up, but so much to do
:(
> 
> Understood.
> 
> LGTM

Powered by Google App Engine
This is Rietveld 408576698