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

Issue 10837149: Don't use NXArgc or NXArgv. Access them via _NSGetArgc() and _NSGetArgv(). (Closed)

Created:
8 years, 4 months ago by Mark Mentovai
Modified:
8 years, 4 months ago
Reviewers:
Robert Sesek, Nico
CC:
chromium-reviews
Visibility:
Public.

Description

Don't use NXArgc or NXArgv. Access them via _NSGetArgc() and _NSGetArgv(). This allows dead code stripping to be turned back on for the main executables and for the NXArgc and NXArgv symbols to be stripped. BUG=139902 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=150419

Patch Set 1 #

Patch Set 2 : Copyright test #

Patch Set 3 : Make argvp conster #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -35 lines) Patch
M chrome/app/app.saves View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/app/app_asan.saves View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/mac/relauncher.cc View 1 2 3 chunks +10 lines, -11 lines 1 comment Download
M chrome/chrome.gyp View 1 chunk +0 lines, -10 lines 0 comments Download
M chrome/chrome_exe.gypi View 1 chunk +0 lines, -10 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Mark Mentovai
8 years, 4 months ago (2012-08-07 20:23:15 UTC) #1
Robert Sesek
LGTM And pass --root=src to your git-try.
8 years, 4 months ago (2012-08-07 20:34:34 UTC) #2
Nico
8 years, 4 months ago (2012-08-09 01:07:38 UTC) #3
https://chromiumcodereview.appspot.com/10837149/diff/6002/chrome/browser/mac/...
File chrome/browser/mac/relauncher.cc (right):

https://chromiumcodereview.appspot.com/10837149/diff/6002/chrome/browser/mac/...
chrome/browser/mac/relauncher.cc:279: const char* const* const* argvp =
_NSGetArgv();
:-D

Powered by Google App Engine
This is Rietveld 408576698