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

Issue 3176036: [Mac] if someone overrides FILE_EXE/DIR_EXE in the path service, it can cause... (Closed)

Created:
10 years, 4 months ago by TVL
Modified:
9 years, 7 months ago
CC:
chromium-reviews, John Grabowski, pam+watch_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

[Mac] if someone overrides FILE_EXE/DIR_EXE in the path service, it can cause the calculation for DIR_SOURCE_ROOT to go wrong. Avoid this by not using the value from the path service. BUG=52918 TEST=green tree Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=57237

Patch Set 1 #

Total comments: 20

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 2

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -24 lines) Patch
M base/base_paths_mac.mm View 1 2 3 2 chunks +39 lines, -24 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
TVL
10 years, 4 months ago (2010-08-24 19:56:01 UTC) #1
Mark Mentovai
http://codereview.chromium.org/3176036/diff/1/2 File base/base_paths_mac.mm (right): http://codereview.chromium.org/3176036/diff/1/2#newcode19 base/base_paths_mac.mm:19: std::string GetNSExecutablePath(void) { What’s (void) about? This isn’t C! ...
10 years, 4 months ago (2010-08-24 20:03:04 UTC) #2
Paweł Hajdan Jr.
After fixing those and Mark's comments, LGTM. Thanks for working on this. http://codereview.chromium.org/3176036/diff/1/2 File base/base_paths_mac.mm ...
10 years, 4 months ago (2010-08-24 20:12:19 UTC) #3
TVL
http://codereview.chromium.org/3176036/diff/1/2 File base/base_paths_mac.mm (right): http://codereview.chromium.org/3176036/diff/1/2#newcode19 base/base_paths_mac.mm:19: std::string GetNSExecutablePath(void) { On 2010/08/24 20:03:05, Mark Mentovai wrote: ...
10 years, 4 months ago (2010-08-24 20:24:57 UTC) #4
Mark Mentovai
10 years, 4 months ago (2010-08-24 20:32:19 UTC) #5
LGTM

http://codereview.chromium.org/3176036/diff/8001/9001
File base/base_paths_mac.mm (right):

http://codereview.chromium.org/3176036/diff/8001/9001#newcode25
base/base_paths_mac.mm:25: uint32_t executable_length = 0;
DCHECK(path);

http://codereview.chromium.org/3176036/diff/8001/9001#newcode60
base/base_paths_mac.mm:60: //
src/xcodebuild/{Debug|Release}/Chromium.app/Contents/MacOS/Chromium.
Make this 80 by getting rid of the period.

Powered by Google App Engine
This is Rietveld 408576698