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

Issue 8361011: Tweak PathProviderPosix's FILE_EXE and FILE_MODULE handling on FreeBSD. (Closed)

Created:
9 years, 2 months ago by grt (UTC plus 2)
Modified:
9 years, 2 months ago
CC:
chromium-reviews, darin (slow to review), brettw, willchan no longer on Chromium
Visibility:
Public.

Description

Tweak PathProviderPosix's FILE_EXE and FILE_MODULE handling on FreeBSD. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=107134

Patch Set 1 #

Total comments: 4

Patch Set 2 : incorporated tony's comments #

Total comments: 6

Patch Set 3 : addressed wtc's comments #

Total comments: 1

Patch Set 4 : backed off on main strlen change #

Total comments: 3

Patch Set 5 : removed webkit/glue change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -3 lines) Patch
M base/base_paths_linux.cc View 1 2 1 chunk +4 lines, -3 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
grt (UTC plus 2)
Reviewers: jar: base/base_paths_linux.cc ananta: chrome/default_plugin/*, chrome_frame/* tony: webkit/glue/webkitplatformsupport_impl.cc Thanks.
9 years, 2 months ago (2011-10-20 19:50:14 UTC) #1
tony
http://codereview.chromium.org/8361011/diff/1/chrome/default_plugin/plugin_impl_gtk.cc File chrome/default_plugin/plugin_impl_gtk.cc (right): http://codereview.chromium.org/8361011/diff/1/chrome/default_plugin/plugin_impl_gtk.cc#newcode43 chrome/default_plugin/plugin_impl_gtk.cc:43: if (mime_type == NULL || *mime_type == L'\0') { ...
9 years, 2 months ago (2011-10-20 20:24:53 UTC) #2
grt (UTC plus 2)
Thanks for the good eyes. PTAL. http://codereview.chromium.org/8361011/diff/1/chrome/default_plugin/plugin_impl_gtk.cc File chrome/default_plugin/plugin_impl_gtk.cc (right): http://codereview.chromium.org/8361011/diff/1/chrome/default_plugin/plugin_impl_gtk.cc#newcode43 chrome/default_plugin/plugin_impl_gtk.cc:43: if (mime_type == ...
9 years, 2 months ago (2011-10-20 20:52:31 UTC) #3
tony
LGTM
9 years, 2 months ago (2011-10-20 20:56:05 UTC) #4
wtc
http://codereview.chromium.org/8361011/diff/5001/base/base_paths_linux.cc File base/base_paths_linux.cc (right): http://codereview.chromium.org/8361011/diff/5001/base/base_paths_linux.cc#newcode54 base/base_paths_linux.cc:54: if (error < 0 || length == 0 || ...
9 years, 2 months ago (2011-10-20 21:41:32 UTC) #5
jar (doing other things)
This is sad, and more than amazing. LGTM
9 years, 2 months ago (2011-10-20 22:00:37 UTC) #6
wtc
http://codereview.chromium.org/8361011/diff/5001/base/base_paths_linux.cc File base/base_paths_linux.cc (right): http://codereview.chromium.org/8361011/diff/5001/base/base_paths_linux.cc#newcode58 base/base_paths_linux.cc:58: bin_dir[strlen(bin_dir)] = 0; The FreeBSD sysctl(3) man page does ...
9 years, 2 months ago (2011-10-20 22:15:34 UTC) #7
grt (UTC plus 2)
wtc: PTAL. http://codereview.chromium.org/8361011/diff/5001/base/base_paths_linux.cc File base/base_paths_linux.cc (right): http://codereview.chromium.org/8361011/diff/5001/base/base_paths_linux.cc#newcode54 base/base_paths_linux.cc:54: if (error < 0 || length == ...
9 years, 2 months ago (2011-10-21 13:51:33 UTC) #8
jar (doing other things)
Quite amazingly (to me), Will Chan verified that gcc optimizes: (strlen(foo) == 0) into: (!*foo) ...
9 years, 2 months ago (2011-10-21 16:55:07 UTC) #9
grt (UTC plus 2)
On 2011/10/21 16:55:07, jar wrote: > Quite amazingly (to me), Will Chan verified that gcc ...
9 years, 2 months ago (2011-10-21 18:17:44 UTC) #10
wtc
Patch Set 3 LGTM. grt: thanks for checking the FreeBSD source code. Didn't mean to ...
9 years, 2 months ago (2011-10-21 19:18:19 UTC) #11
ananta
Default plugin changes LGTM
9 years, 2 months ago (2011-10-22 17:46:17 UTC) #12
grt (UTC plus 2)
I've reverted the bulk changes of strlen(foo) == 0 -> *foo == '\0' since compilers ...
9 years, 2 months ago (2011-10-24 13:29:07 UTC) #13
jar (doing other things)
LGTM
9 years, 2 months ago (2011-10-24 16:11:05 UTC) #14
tony
LGTM
9 years, 2 months ago (2011-10-24 17:28:01 UTC) #15
wtc
Patch Set 4 LGTM. Did anyone object to the strlen(foo) == 0 -> *foo == ...
9 years, 2 months ago (2011-10-25 00:07:56 UTC) #16
grt (UTC plus 2)
On 2011/10/25 00:07:56, wtc wrote: > Patch Set 4 LGTM. > > Did anyone object ...
9 years, 2 months ago (2011-10-25 13:21:50 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/grt@chromium.org/8361011/12004
9 years, 2 months ago (2011-10-25 13:22:12 UTC) #18
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
9 years, 2 months ago (2011-10-25 14:36:58 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/grt@chromium.org/8361011/12004
9 years, 2 months ago (2011-10-25 15:09:03 UTC) #20
commit-bot: I haz the power
Change committed as 107134
9 years, 2 months ago (2011-10-25 16:22:28 UTC) #21
wtc
9 years, 2 months ago (2011-10-25 17:42:30 UTC) #22
http://codereview.chromium.org/8361011/diff/12001/webkit/glue/webkitplatforms...
File webkit/glue/webkitplatformsupport_impl.cc (right):

http://codereview.chromium.org/8361011/diff/12001/webkit/glue/webkitplatforms...
webkit/glue/webkitplatformsupport_impl.cc:427: if (name == NULL ||
!strlen(name))

Just FYI: my quick experiments showed that strlen(NULL) crashes
correctly on the three major platforms (Linux, Mac, Windows).

Powered by Google App Engine
This is Rietveld 408576698