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

Issue 2770753006: [base/files] Respect MAC_CHROMIUM_TMPDIR instead of TMPDIR on macOS. (Closed)

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

Description

[base/files] Respect MAC_CHROMIUM_TMPDIR instead of TMPDIR on macOS. Some folks are currently setting $TMPDIR to very long values on macOS, which causes socket name length issues when using $TMPDIR. R=mattm@chromium.org BUG=698759, 696803 Review-Url: https://codereview.chromium.org/2770753006 Cr-Commit-Position: refs/heads/master@{#461515} Committed: https://chromium.googlesource.com/chromium/src/+/16abc4a0f8b419fe03dcfba8799cae52f28993b1

Patch Set 1 #

Total comments: 3

Patch Set 2 : feedback #

Total comments: 6

Patch Set 3 : import #

Patch Set 4 : import and uint #

Patch Set 5 : fix DeveloperPrivateApiUnitTest.LoadUnpackedRetryId #

Total comments: 1

Patch Set 6 : hoist! #

Total comments: 1

Patch Set 7 : comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -4 lines) Patch
M base/files/file_util_mac.mm View 1 2 3 2 chunks +9 lines, -3 lines 0 comments Download
M chrome/browser/extensions/test_extension_dir.cc View 1 2 3 4 5 6 1 chunk +7 lines, -1 line 0 comments Download

Messages

Total messages: 73 (38 generated)
iannucci
3 years, 9 months ago (2017-03-25 00:32:29 UTC) #1
iannucci1
+thakis for FYI
3 years, 9 months ago (2017-03-25 00:33:12 UTC) #6
iannucci
https://codereview.chromium.org/2770753006/diff/1/base/files/file_util_mac.mm File base/files/file_util_mac.mm (right): https://codereview.chromium.org/2770753006/diff/1/base/files/file_util_mac.mm#newcode29 base/files/file_util_mac.mm:29: const char* env_tmpdir = getenv("MAC_CHROMIUM_TMPDIR"); I don't have strong ...
3 years, 9 months ago (2017-03-25 00:45:04 UTC) #7
iannucci
Monday morning ping/ptal :)
3 years, 9 months ago (2017-03-27 17:02:57 UTC) #10
mattm
On 2017/03/27 17:02:57, iannucci wrote: > Monday morning ping/ptal :) lgtm. I don't have a ...
3 years, 9 months ago (2017-03-27 19:40:46 UTC) #11
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/2770753006/1
3 years, 9 months ago (2017-03-27 19:46:57 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/395586)
3 years, 9 months ago (2017-03-27 19:55:22 UTC) #15
iannucci
On 2017/03/27 19:55:22, commit-bot: I haz the power wrote: > Try jobs failed on following ...
3 years, 9 months ago (2017-03-27 20:28:07 UTC) #16
iannucci
On 2017/03/27 20:28:07, iannucci wrote: > On 2017/03/27 19:55:22, commit-bot: I haz the power wrote: ...
3 years, 9 months ago (2017-03-27 20:28:20 UTC) #17
iannucci
+mark for OWNERS
3 years, 9 months ago (2017-03-27 20:30:18 UTC) #19
Mark Mentovai
but LGTM https://codereview.chromium.org/2770753006/diff/1/base/files/file_util_mac.mm File base/files/file_util_mac.mm (right): https://codereview.chromium.org/2770753006/diff/1/base/files/file_util_mac.mm#newcode28 base/files/file_util_mac.mm:28: // $MAC_CHROMIUM_TMPDIR. Explain why not TMPDIR here, ...
3 years, 9 months ago (2017-03-27 20:36:31 UTC) #20
iannucci
https://codereview.chromium.org/2770753006/diff/20001/base/files/file_util_mac.mm File base/files/file_util_mac.mm (right): https://codereview.chromium.org/2770753006/diff/20001/base/files/file_util_mac.mm#newcode33 base/files/file_util_mac.mm:33: DCHECK_LT(strlen(env_tmpdir), 50) NSTemporaryDirectory() length is 49.
3 years, 9 months ago (2017-03-28 00:10:59 UTC) #23
Mark Mentovai
LGTM otherwise. Thanks for the updates. https://codereview.chromium.org/2770753006/diff/20001/base/files/file_util_mac.mm File base/files/file_util_mac.mm (right): https://codereview.chromium.org/2770753006/diff/20001/base/files/file_util_mac.mm#newcode10 base/files/file_util_mac.mm:10: #include "base/files/file_util.h" This ...
3 years, 9 months ago (2017-03-28 00:20:24 UTC) #26
iannucci
https://codereview.chromium.org/2770753006/diff/20001/base/files/file_util_mac.mm File base/files/file_util_mac.mm (right): https://codereview.chromium.org/2770753006/diff/20001/base/files/file_util_mac.mm#newcode10 base/files/file_util_mac.mm:10: #include "base/files/file_util.h" On 2017/03/28 00:20:23, Mark Mentovai wrote: > ...
3 years, 9 months ago (2017-03-28 00:24:04 UTC) #27
Mark Mentovai
https://codereview.chromium.org/2770753006/diff/20001/base/files/file_util_mac.mm File base/files/file_util_mac.mm (right): https://codereview.chromium.org/2770753006/diff/20001/base/files/file_util_mac.mm#newcode10 base/files/file_util_mac.mm:10: #include "base/files/file_util.h" On 2017/03/28 00:24:04, iannucci wrote: > On ...
3 years, 9 months ago (2017-03-28 00:27:14 UTC) #30
iannucci
On 2017/03/28 00:27:14, Mark Mentovai wrote: > https://codereview.chromium.org/2770753006/diff/20001/base/files/file_util_mac.mm > File base/files/file_util_mac.mm (right): > > https://codereview.chromium.org/2770753006/diff/20001/base/files/file_util_mac.mm#newcode10 ...
3 years, 9 months ago (2017-03-28 00:48:39 UTC) #35
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/2770753006/60001
3 years, 9 months ago (2017-03-28 00:54:35 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/415949)
3 years, 9 months ago (2017-03-28 01:43:33 UTC) #41
iannucci
@mattm; any idea what's happening here: https://luci-logdog.appspot.com/v/?s=chromium%2Fbb%2Ftryserver.chromium.mac%2Fmac_chromium_rel_ng%2F415928%2F%2B%2Frecipes%2Fsteps%2Funit_tests__with_patch_%2F0%2Flogs%2FDeveloperPrivateApiUnitTest.LoadUnpackedRetryId%2F0 ? It sortof looks like something is expanding ...
3 years, 9 months ago (2017-03-28 01:47:22 UTC) #42
iannucci
+rdevlin.cronin for developer_private_api_unittest.cc OWNERS Basically on OS X the temp directory includes a symlink (i.e. ...
3 years, 8 months ago (2017-03-29 04:23:20 UTC) #44
Mark Mentovai
I wish people would stop with all of these absolute/resolved paths all over the place…
3 years, 8 months ago (2017-03-29 04:25:24 UTC) #47
iannucci
On 2017/03/29 04:25:24, Mark Mentovai wrote: > I wish people would stop with all of ...
3 years, 8 months ago (2017-03-29 04:29:02 UTC) #48
Mark Mentovai
On 2017/03/29 04:29:02, iannucci wrote: > On 2017/03/29 04:25:24, Mark Mentovai wrote: > > I ...
3 years, 8 months ago (2017-03-29 04:34:30 UTC) #49
Devlin
https://codereview.chromium.org/2770753006/diff/80001/chrome/browser/extensions/api/developer_private/developer_private_api_unittest.cc File chrome/browser/extensions/api/developer_private/developer_private_api_unittest.cc (right): https://codereview.chromium.org/2770753006/diff/80001/chrome/browser/extensions/api/developer_private/developer_private_api_unittest.cc#newcode607 chrome/browser/extensions/api/developer_private/developer_private_api_unittest.cc:607: base::FilePath path = base::MakeAbsoluteFilePath(dir.UnpackedPath()); Hmm... this doesn't seem like ...
3 years, 8 months ago (2017-03-29 15:15:43 UTC) #52
iannucci
On 2017/03/29 15:15:43, Devlin wrote: > https://codereview.chromium.org/2770753006/diff/80001/chrome/browser/extensions/api/developer_private/developer_private_api_unittest.cc > File > chrome/browser/extensions/api/developer_private/developer_private_api_unittest.cc > (right): > > ...
3 years, 8 months ago (2017-03-29 16:52:39 UTC) #53
iannucci
To be clear: this CL is a release blocker (for 59), so I'd like to ...
3 years, 8 months ago (2017-03-29 20:55:43 UTC) #54
Devlin
On 2017/03/29 16:52:39, iannucci wrote: > On 2017/03/29 15:15:43, Devlin wrote: > > > https://codereview.chromium.org/2770753006/diff/80001/chrome/browser/extensions/api/developer_private/developer_private_api_unittest.cc ...
3 years, 8 months ago (2017-03-30 00:36:42 UTC) #55
iannucci
Finally got back to this, PTAL
3 years, 8 months ago (2017-04-03 17:15:01 UTC) #57
Devlin
lgtm % nit, assuming the bots are happy. https://codereview.chromium.org/2770753006/diff/100001/chrome/browser/extensions/test_extension_dir.cc File chrome/browser/extensions/test_extension_dir.cc (right): https://codereview.chromium.org/2770753006/diff/100001/chrome/browser/extensions/test_extension_dir.cc#newcode70 chrome/browser/extensions/test_extension_dir.cc:70: return ...
3 years, 8 months ago (2017-04-03 17:25:22 UTC) #59
iannucci
On 2017/04/03 17:25:22, Devlin wrote: > lgtm % nit, assuming the bots are happy. > ...
3 years, 8 months ago (2017-04-03 17:31:00 UTC) #60
iannucci
bots are happy, I'll commit this as-is to prevent any other regressions and free up ...
3 years, 8 months ago (2017-04-03 19:49:56 UTC) #65
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/2770753006/120001
3 years, 8 months ago (2017-04-03 19:50:36 UTC) #68
commit-bot: I haz the power
Committed patchset #7 (id:120001) as https://chromium.googlesource.com/chromium/src/+/16abc4a0f8b419fe03dcfba8799cae52f28993b1
3 years, 8 months ago (2017-04-03 20:05:36 UTC) #71
Mark Mentovai
LGTM still from me too, for whatever you may still need that for.
3 years, 8 months ago (2017-04-03 20:11:03 UTC) #72
Devlin
3 years, 8 months ago (2017-04-03 20:30:05 UTC) #73
Message was sent while issue was closed.
On 2017/04/03 17:31:00, iannucci wrote:
> On 2017/04/03 17:25:22, Devlin wrote:
>
https://codereview.chromium.org/2770753006/diff/100001/chrome/browser/extensi...
> > File chrome/browser/extensions/test_extension_dir.cc (right):
> > 
> >
>
https://codereview.chromium.org/2770753006/diff/100001/chrome/browser/extensi...
> > chrome/browser/extensions/test_extension_dir.cc:70: return
> > base::MakeAbsoluteFilePath(dir_.GetPath());
> > Can we add a comment explaining why this is important?
> 
> Added a comment, but please take a look to review it for
accuracy+helpfulness...
> I'm new in this code :)

retroactive slgtm. :)

Powered by Google App Engine
This is Rietveld 408576698