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

Issue 2713293002: Allow $TMPDIR to set temporary directory on OS X. (Closed)

Created:
3 years, 10 months ago by iannucci
Modified:
3 years, 9 months ago
CC:
chromium-reviews, mac-reviews_chromium.org, chromoting-reviews_chromium.org, vmpstr+watch_chromium.org, Vadim Sh., Nico
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow $TMPDIR to set temporary directory on OS X. This allows the continuous integration builds to be more hermetic by supplying a managed value for $TMPDIR and having chromium + tests respect it. NSTemporaryDirectory takes its value directly from a non-overridable confstr(_CS_DARWIN_USER_TEMP_DIR) call internally. This CL brings OS X more in line with Windows and Linux which both respect an environment variable ($TEMP and $TMPDIR respectively). BUG=696803 Review-Url: https://codereview.chromium.org/2713293002 Cr-Original-Commit-Position: refs/heads/master@{#453835} Committed: https://chromium.googlesource.com/chromium/src/+/7b5db573b3ebbc32ee4608163b9ba7e68750ee9a Review-Url: https://codereview.chromium.org/2713293002 Cr-Commit-Position: refs/heads/master@{#453873} Committed: https://chromium.googlesource.com/chromium/src/+/95fcf47ca01054ffe38e8609525a6ca8579b7824

Patch Set 1 #

Total comments: 1

Patch Set 2 #

Patch Set 3 #

Patch Set 4 : more fixes #

Patch Set 5 : missing include #

Total comments: 8

Patch Set 6 : format #

Total comments: 1

Patch Set 7 : Fix comment #

Total comments: 4

Patch Set 8 : lowercase and filesystemRepresentation #

Patch Set 9 : Fix typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -13 lines) Patch
M base/files/file_util_mac.mm View 1 2 3 4 5 6 2 chunks +11 lines, -1 line 0 comments Download
M chrome/browser/file_select_helper_mac.mm View 1 2 3 4 5 6 7 1 chunk +14 lines, -8 lines 0 comments Download
M remoting/host/mac/me2me_preference_pane.mm View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -4 lines 0 comments Download

Messages

Total messages: 56 (26 generated)
iannucci
https://codereview.chromium.org/2713293002/diff/1/chrome/browser/file_select_helper_mac.mm File chrome/browser/file_select_helper_mac.mm (right): https://codereview.chromium.org/2713293002/diff/1/chrome/browser/file_select_helper_mac.mm#newcode21 chrome/browser/file_select_helper_mac.mm:21: // should be zipped to. Returns an empty path ...
3 years, 10 months ago (2017-02-24 20:56:01 UTC) #3
Lambros
remoting/ lgtm
3 years, 10 months ago (2017-02-24 21:59:00 UTC) #6
iannucci
PTAL Please let me know if this is not, in fact, a good idea, or ...
3 years, 10 months ago (2017-02-25 00:11:06 UTC) #10
iannucci
+maruel, vadimsh for FYI
3 years, 10 months ago (2017-02-25 00:12:47 UTC) #11
M-A Ruel
That's great, it'll help a lot with unintentional accumulation of junk on the bots. I'm ...
3 years, 10 months ago (2017-02-25 14:17:56 UTC) #15
Nico
This feels like a mark@ CL, so adding him and moving myself to cc. https://cs.chromium.org/search/?q=nstemporarydirectory+package:%5Echromium$&type=cs ...
3 years, 9 months ago (2017-02-27 01:16:20 UTC) #17
Nico
Keyboard shortcut fail, sent to soon. Also wanted to say: What's the goal in being ...
3 years, 9 months ago (2017-02-27 01:17:38 UTC) #18
Nico
(or, asked another way, is there some tracking bug that this CL's BUG= line should ...
3 years, 9 months ago (2017-02-27 01:17:57 UTC) #20
iannucci
On 2017/02/27 01:17:57, Nico wrote: > (or, asked another way, is there some tracking bug ...
3 years, 9 months ago (2017-02-27 01:23:44 UTC) #23
Mark Mentovai
I haven’t considered the merits yet, but I wanted to mention: TMPDIR is always set ...
3 years, 9 months ago (2017-02-27 03:31:13 UTC) #24
iannucci
On 2017/02/27 03:31:13, Mark Mentovai wrote: > I haven’t considered the merits yet, but I ...
3 years, 9 months ago (2017-02-27 04:47:29 UTC) #25
M-A Ruel
On 2017/02/27 01:17:57, Nico wrote: > (or, asked another way, is there some tracking bug ...
3 years, 9 months ago (2017-02-27 13:59:38 UTC) #26
jam
what do you want me to look at?
3 years, 9 months ago (2017-02-27 16:15:45 UTC) #27
iannucci
@jam: I think mark@ can cover OWNERS @mark: I've added a bug (crbug.com/696803), but what ...
3 years, 9 months ago (2017-02-28 00:20:21 UTC) #29
iannucci
Ping :). Any additional thoughts on this?
3 years, 9 months ago (2017-02-28 17:59:28 UTC) #30
Mark Mentovai
https://codereview.chromium.org/2713293002/diff/80001/base/files/file_util_mac.mm File base/files/file_util_mac.mm (right): https://codereview.chromium.org/2713293002/diff/80001/base/files/file_util_mac.mm#newcode26 base/files/file_util_mac.mm:26: // In order to facilitate hermetic runs on OS ...
3 years, 9 months ago (2017-02-28 21:59:21 UTC) #31
iannucci
PTAL https://codereview.chromium.org/2713293002/diff/80001/base/files/file_util_mac.mm File base/files/file_util_mac.mm (right): https://codereview.chromium.org/2713293002/diff/80001/base/files/file_util_mac.mm#newcode26 base/files/file_util_mac.mm:26: // In order to facilitate hermetic runs on ...
3 years, 9 months ago (2017-03-01 02:22:21 UTC) #32
iannucci
https://codereview.chromium.org/2713293002/diff/100001/base/files/file_util_mac.mm File base/files/file_util_mac.mm (right): https://codereview.chromium.org/2713293002/diff/100001/base/files/file_util_mac.mm#newcode9 base/files/file_util_mac.mm:9: #include <stdlib.h> `git cl format` made me do this
3 years, 9 months ago (2017-03-01 02:23:19 UTC) #33
iannucci
And actually it looks like $TMPDIR is maybe set on iOS too: http://chaosinmotion.com/blog/?p=829 ¯\_(ツ)_/¯
3 years, 9 months ago (2017-03-01 02:24:46 UTC) #34
Mark Mentovai
iannucci wrote: > And actually it looks like $TMPDIR is maybe set on iOS too: ...
3 years, 9 months ago (2017-03-01 02:33:25 UTC) #37
Mark Mentovai
Wait, wait, that was LGTM with these comments. Why didn’t the comments get posted? RIETVELD! ...
3 years, 9 months ago (2017-03-01 02:33:49 UTC) #38
iannucci
On 2017/03/01 02:33:49, Mark Mentovai wrote: > Wait, wait, that was LGTM with these comments. ...
3 years, 9 months ago (2017-03-01 02:48:52 UTC) #39
iannucci
https://codereview.chromium.org/2713293002/diff/120001/chrome/browser/file_select_helper_mac.mm File chrome/browser/file_select_helper_mac.mm (right): https://codereview.chromium.org/2713293002/diff/120001/chrome/browser/file_select_helper_mac.mm#newcode34 chrome/browser/file_select_helper_mac.mm:34: dest = dest.Append(base::SysNSStringToUTF8(bundleID)); On 2017/03/01 02:33:49, Mark Mentovai wrote: ...
3 years, 9 months ago (2017-03-01 02:49:14 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2713293002/140001
3 years, 9 months ago (2017-03-01 02:50:54 UTC) #43
Mark Mentovai
LGTM
3 years, 9 months ago (2017-03-01 02:52:38 UTC) #44
commit-bot: I haz the power
Committed patchset #8 (id:140001) as https://chromium.googlesource.com/chromium/src/+/7b5db573b3ebbc32ee4608163b9ba7e68750ee9a
3 years, 9 months ago (2017-03-01 03:54:02 UTC) #47
iannucci
A revert of this CL (patchset #8 id:140001) has been created in https://codereview.chromium.org/2724733002/ by iannucci@chromium.org. ...
3 years, 9 months ago (2017-03-01 04:44:08 UTC) #48
iannucci
On 2017/03/01 04:44:08, iannucci wrote: > A revert of this CL (patchset #8 id:140001) has ...
3 years, 9 months ago (2017-03-01 04:47:18 UTC) #49
iannucci
Ok, figured out how to build this target locally and uploaded patchset 9
3 years, 9 months ago (2017-03-01 06:30:09 UTC) #51
commit-bot: I haz the power
3 years, 9 months ago (2017-03-01 06:30:28 UTC) #54

Powered by Google App Engine
This is Rietveld 408576698