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

Issue 267102: Better code to determine the framework and helper app paths (Closed)

Created:
11 years, 2 months ago by Mark Mentovai
Modified:
9 years, 7 months ago
Reviewers:
TVL
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Eliminate char/wchar_t conversions, probably-unsafe statics, and disk access when determining the framework and helper app paths on the Mac. BUG=24833 TEST=app still works, tests still pass Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=29034

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -41 lines) Patch
M chrome/browser/utility_process_host_unittest.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/chrome.gyp View 1 chunk +22 lines, -0 lines 2 comments Download
M chrome/common/child_process_host.cc View 1 2 chunks +3 lines, -6 lines 0 comments Download
M chrome/common/chrome_constants.h View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/common/chrome_constants.cc View 1 chunk +5 lines, -5 lines 0 comments Download
chrome/common/chrome_paths_mac.mm View 1 chunk +11 lines, -27 lines 2 comments Download
A chrome/tools/build/make_version_cc.py View 2 1 chunk +35 lines, -0 lines 2 comments Download

Messages

Total messages: 7 (0 generated)
Mark Mentovai
11 years, 2 months ago (2009-10-14 19:47:17 UTC) #1
TVL
lgtm
11 years, 2 months ago (2009-10-14 19:58:13 UTC) #2
Mark Mentovai
For real this time
11 years, 2 months ago (2009-10-14 20:43:09 UTC) #3
TVL
http://codereview.chromium.org/267102/diff/6001/7005 File chrome/chrome.gyp (right): http://codereview.chromium.org/267102/diff/6001/7005#newcode492 Line 492: }, see base.gyp:linux_versioninfo, yes, it reached up into ...
11 years, 2 months ago (2009-10-14 21:09:15 UTC) #4
Mark Mentovai
http://codereview.chromium.org/267102/diff/6001/7005 File chrome/chrome.gyp (right): http://codereview.chromium.org/267102/diff/6001/7005#newcode492 Line 492: }, TVL wrote: > see base.gyp:linux_versioninfo, yes, it ...
11 years, 2 months ago (2009-10-14 21:26:46 UTC) #5
TVL
lgtm
11 years, 2 months ago (2009-10-14 21:40:08 UTC) #6
Mark Mentovai
11 years, 2 months ago (2009-10-14 21:51:06 UTC) #7
I wrote:
> http://codereview.chromium.org/267102/diff/6001/7002#newcode71
> Line 71: NSBundle* app_bundle =3D [NSBundle mainBundle];
> TVL wrote:
>>
>> since the concern in here was threading,
>
> Good point. =A0If we care about this, we should fix base/base_paths_mac.m=
m
> too, which implements FILE_EXE and FILE_MODULE in terms of [[NSBundle
> mainBundle] executablePath].
>
> I'm not positive that there's a fantastic way to fix this. =A0I guess we
> could use _NSGetExecutablePath, but we'd need to absolutize it
> ourselves.
>
> I'll file a p1 bug.

Bug 24842.

Mark

Powered by Google App Engine
This is Rietveld 408576698