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

Issue 7019041: Fix up PathProvider on the Mac for FILE_MODULE. (Closed)

Created:
9 years, 7 months ago by dmac
Modified:
9 years, 3 months ago
CC:
chromium-reviews, pam+watch_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Fix up PathProvider on the Mac for FILE_MODULE. PathProvider on the Mac always returned the FILE_EXE for FILE_MODULE, which isn't necessarily correct. BUG=NONE TEST=BUILD Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=86631 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=86833

Patch Set 1 #

Total comments: 1

Patch Set 2 : Symbol->Address #

Total comments: 1

Patch Set 3 : moved into base_paths_mac.mm #

Total comments: 1

Patch Set 4 : moved os mesa libraries on mac to better location #

Total comments: 2

Patch Set 5 : Search for osmesa in build dir, and get rid of copies. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -36 lines) Patch
M base/base_paths_mac.mm View 1 2 3 chunks +17 lines, -2 lines 1 comment Download
M chrome/chrome_exe.gypi View 1 2 3 4 1 chunk +0 lines, -16 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M ui/gfx/gl/gl_implementation_mac.cc View 1 2 3 4 2 chunks +10 lines, -5 lines 0 comments Download
M webkit/tools/test_shell/test_shell.gypi View 1 2 3 4 2 chunks +2 lines, -10 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
dmac
PTAL
9 years, 7 months ago (2011-05-23 15:57:16 UTC) #1
Mark Mentovai
You also need to look through everything that uses FILE_MODULE and make sure that this ...
9 years, 7 months ago (2011-05-23 16:07:46 UTC) #2
dmac
On 2011/05/23 16:07:46, Mark Mentovai wrote: > You also need to look through everything that ...
9 years, 7 months ago (2011-05-23 16:49:46 UTC) #3
Mark Mentovai
http://codereview.chromium.org/7019041/diff/3001/base/mac/foundation_util.mm File base/mac/foundation_util.mm (right): http://codereview.chromium.org/7019041/diff/3001/base/mac/foundation_util.mm#newcode204 base/mac/foundation_util.mm:204: bool GetModulePathForAddress(FilePath* path, const void* address) { I don’t ...
9 years, 7 months ago (2011-05-23 16:52:16 UTC) #4
dmac
On 2011/05/23 16:52:16, Mark Mentovai wrote: > http://codereview.chromium.org/7019041/diff/3001/base/mac/foundation_util.mm > File base/mac/foundation_util.mm (right): > > http://codereview.chromium.org/7019041/diff/3001/base/mac/foundation_util.mm#newcode204 ...
9 years, 7 months ago (2011-05-23 17:08:25 UTC) #5
dmac
On 2011/05/23 17:08:25, dmac wrote: > On 2011/05/23 16:52:16, Mark Mentovai wrote: > > http://codereview.chromium.org/7019041/diff/3001/base/mac/foundation_util.mm ...
9 years, 7 months ago (2011-05-23 20:39:20 UTC) #6
dmac
+ apatrick so I can get his feedback regarding moving the osmesa.so if desired.
9 years, 7 months ago (2011-05-23 20:40:00 UTC) #7
Mark Mentovai
I agree that (b) is correct.
9 years, 7 months ago (2011-05-23 20:43:32 UTC) #8
Mark Mentovai
http://codereview.chromium.org/7019041/diff/5002/base/base_paths_mac.mm File base/base_paths_mac.mm (right): http://codereview.chromium.org/7019041/diff/5002/base/base_paths_mac.mm#newcode43 base/base_paths_mac.mm:43: bool GetModulePathForAddress(FilePath* path, There’s no longer any need to ...
9 years, 7 months ago (2011-05-23 20:45:03 UTC) #9
dmac
PTAL I've moved the osmesa library on mac.
9 years, 7 months ago (2011-05-23 20:45:56 UTC) #10
dmac
On 2011/05/23 20:45:03, Mark Mentovai wrote: > http://codereview.chromium.org/7019041/diff/5002/base/base_paths_mac.mm > File base/base_paths_mac.mm (right): > > http://codereview.chromium.org/7019041/diff/5002/base/base_paths_mac.mm#newcode43 ...
9 years, 7 months ago (2011-05-23 20:48:06 UTC) #11
Mark Mentovai
http://codereview.chromium.org/7019041/diff/10001/base/base_paths_mac.mm File base/base_paths_mac.mm (right): http://codereview.chromium.org/7019041/diff/10001/base/base_paths_mac.mm#newcode44 base/base_paths_mac.mm:44: const void* address) WARN_UNUSED_RESULT; Didn’t spot WARN_UNUSED_RESULT before. OK. ...
9 years, 7 months ago (2011-05-23 20:59:16 UTC) #12
dmaclach1
On Mon, May 23, 2011 at 13:59, <mark@chromium.org> wrote: > > http://codereview.chromium.org/7019041/diff/10001/base/base_paths_mac.mm > File base/base_paths_mac.mm ...
9 years, 7 months ago (2011-05-23 21:02:12 UTC) #13
apatrick_chromium
Thanks for moving it. It is developer only for running some layout tests on boxes ...
9 years, 7 months ago (2011-05-23 21:09:45 UTC) #14
dmac
On 2011/05/23 21:09:45, apatrick_chromium wrote: > Thanks for moving it. It is developer only for ...
9 years, 7 months ago (2011-05-23 21:11:44 UTC) #15
Mark Mentovai
If it’s developer-only, I think I’d actually prefer that it live outside of the application ...
9 years, 7 months ago (2011-05-23 21:12:53 UTC) #16
apatrick_chromium
LGTM
9 years, 7 months ago (2011-05-23 21:18:48 UTC) #17
Mark Mentovai
Looks like there are also osmesa copies in TestShell and DumpRenderTree. Is that why you ...
9 years, 7 months ago (2011-05-25 16:14:39 UTC) #18
commit-bot: I haz the power
Change committed as 86631
9 years, 7 months ago (2011-05-25 16:23:08 UTC) #19
dmac
On 2011/05/25 16:14:39, Mark Mentovai wrote: > Looks like there are also osmesa copies in ...
9 years, 7 months ago (2011-05-25 18:03:39 UTC) #20
Mark Mentovai
Since the thing that loads osmesa.so is already Mac-specific, you can just use Mac-specific code. ...
9 years, 7 months ago (2011-05-25 18:10:02 UTC) #21
dmaclach1
I considered this earlier, but when running a browser test, MainAppBundlePath points to Chromium Framework.framework ...
9 years, 7 months ago (2011-05-25 18:40:04 UTC) #22
Mark Mentovai
Right, I was thinking of the wrong thing. chrome::OuterAppBundle from "chrome/common/chrome_paths_internal.h". But you can only ...
9 years, 7 months ago (2011-05-25 18:47:03 UTC) #23
dmac
PTAL
9 years, 7 months ago (2011-05-25 21:20:03 UTC) #24
Mark Mentovai
LGTM. Before you check in, verify that the buildbot scripts include osmesa.so among the files ...
9 years, 7 months ago (2011-05-26 00:41:17 UTC) #25
Nico
9 years, 3 months ago (2011-09-05 23:14:59 UTC) #26
http://codereview.chromium.org/7019041/diff/18001/base/base_paths_mac.mm
File base/base_paths_mac.mm (right):

http://codereview.chromium.org/7019041/diff/18001/base/base_paths_mac.mm#newc...
base/base_paths_mac.mm:48: if (dladdr(address, &info) == 0)
This call adds 0.1s to InProcessBrowserTest.Empty (which takes ~1.2, so it's
8%). This cost has to be paid for every single ui and browser test we run. There
are 440 of them, so this slows down try jobs 45s – on good days, 1.25% of total
try job time. Can you think of a way to not need this call?

(Also, putting mesa.so into the bundle shows up on the chromium size graph even
though it's not shipped to users, which is a bit confusing.)

Powered by Google App Engine
This is Rietveld 408576698