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

Issue 161783002: Remove default value checking in GN, adds getenv function, reorders parameters to rebase_path. (Closed)

Created:
6 years, 10 months ago by brettw
Modified:
6 years, 10 months ago
Reviewers:
viettrungluu
CC:
chromium-reviews
Visibility:
Public.

Description

Remove default value checking in GN, adds getenv function, reorders parameters to rebase_path. This allows us to have the default value vary according to other parameters. This is what we need in many cases, so having this restriction just made things more complicated. The getenv function will allow us to replace some Python scripts with a fast native function call. The use of rebase path is pretty annoying. 99% of all callers want the "from" directory to be the current one. I reordered the parameters to move the from directory later so we can have a default value for it. This will require a patch to change all current callers of rebase_path when new deps are pulled. BUG=342937 R=viettrungluu@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251821

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : Use base::Environment #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+145 lines, -98 lines) Patch
M tools/gn/args.cc View 1 2 3 4 2 chunks +1 line, -13 lines 0 comments Download
M tools/gn/command_args.cc View 1 2 3 4 3 chunks +15 lines, -11 lines 0 comments Download
M tools/gn/function_rebase_path.cc View 1 6 chunks +58 lines, -38 lines 0 comments Download
M tools/gn/function_rebase_path_unittest.cc View 1 5 chunks +22 lines, -36 lines 0 comments Download
M tools/gn/functions.h View 1 chunk +7 lines, -0 lines 0 comments Download
M tools/gn/functions.cc View 1 2 3 4 3 chunks +38 lines, -0 lines 0 comments Download
M tools/gn/value.cc View 1 3 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
viettrungluu
LGTM with nits/comments. Though I don't really know what I'm looking at. https://codereview.chromium.org/161783002/diff/1/tools/gn/command_args.cc File tools/gn/command_args.cc ...
6 years, 10 months ago (2014-02-12 23:09:33 UTC) #1
brettw
6 years, 10 months ago (2014-02-18 20:24:51 UTC) #2
Message was sent while issue was closed.
Committed patchset #7 manually as r251821 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698