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

Issue 2487783002: Make Crashpad use the user data dir, rather than always default location (Closed)

Created:
4 years, 1 month ago by scottmg
Modified:
3 years, 10 months ago
CC:
chromium-reviews, asvitkine+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make Crashpad use the user data dir, rather than always default location This puts the crash database in the user data directory, rather than in the global shared one. In order to accomplish this, the variable expansion from policy needs to be moved to be suitable for use in chrome_elf. This code handles variable expansions in a registry key that can be set to override the user data dir (in either HKLM or HKCU). We do not need to completely remove the usage of DLLs other than kernel32 in the code despite the code being used in chrome_elf, as in all cases, it will not execute until after the DllMain() of chrome_elf has completed, and we load the used functions via GetProcAddress(), not by import lib. Currently, chrome_elf is signalled from WinMain() of chrome to start crash reporting. In the near future it will be started earlier from a background thread spawned in DllMain(). However, that thread cannot execute until DllMain has completed, so it's then safe to cause the other DLL loads that the variable expansion requires. (Regarding the future thread-based spawning, ref: https://blogs.msdn.microsoft.com/oldnewthing/20070904-00/?p=25283/ which explains why the creation of the thread with which we don't synchronize is OK, because DllMain calls are serialized. But we can discuss that more in https://codereview.chromium.org/2475863004/ too. ) BUG=565446 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.win:win10_chromium_x64_rel_ng Committed: https://crrev.com/7433a2b305bbfcb8c469cddab9a1a3ab2c5b70d1 Cr-Commit-Position: refs/heads/master@{#434855}

Patch Set 1 #

Patch Set 2 : wip #

Patch Set 3 : . #

Total comments: 17

Patch Set 4 : . #

Total comments: 1

Patch Set 5 : . #

Total comments: 29

Patch Set 6 : . #

Patch Set 7 : rebase #

Patch Set 8 : fixes after rebase #

Patch Set 9 : use installdetails #

Patch Set 10 : . #

Total comments: 1

Patch Set 11 : . #

Patch Set 12 : gn check #

Patch Set 13 : . #

Total comments: 24

Patch Set 14 : . #

Patch Set 15 : . #

Total comments: 22

Patch Set 16 : . #

Patch Set 17 : out of install_details #

Total comments: 1

Patch Set 18 : . #

Total comments: 8

Patch Set 19 : thunk #

Total comments: 4

Patch Set 20 : warning, wcsncpy_s #

Patch Set 21 : browser_tests #

Patch Set 22 : install_static for swarming #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+690 lines, -379 lines) Patch
M chrome/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -0 lines 0 comments Download
M chrome/app/chrome_crash_reporter_client_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 4 chunks +11 lines, -11 lines 0 comments Download
M chrome/app/chrome_main_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 4 chunks +38 lines, -11 lines 0 comments Download
M chrome/browser/metrics/chrome_metrics_service_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +4 lines, -7 lines 0 comments Download
M chrome/browser/policy/policy_path_parser_win.cc View 1 2 3 4 3 chunks +5 lines, -102 lines 0 comments Download
M chrome/install_static/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/install_static/OWNERS View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/install_static/install_details.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/install_static/install_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 4 chunks +24 lines, -19 lines 0 comments Download
M chrome/install_static/install_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 8 chunks +100 lines, -125 lines 0 comments Download
M chrome/install_static/install_util_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +29 lines, -32 lines 0 comments Download
A chrome/install_static/policy_path_parser.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +18 lines, -0 lines 0 comments Download
A + chrome/install_static/policy_path_parser.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +69 lines, -66 lines 0 comments Download
A chrome/install_static/user_data_dir.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +44 lines, -0 lines 0 comments Download
A chrome/install_static/user_data_dir.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +156 lines, -0 lines 0 comments Download
A chrome/install_static/user_data_dir_win_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +160 lines, -0 lines 1 comment Download
M chrome_elf/chrome_elf.def View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
M chrome_elf/chrome_elf_main.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +20 lines, -4 lines 0 comments Download

Messages

Total messages: 108 (62 generated)
scottmg
mark: Please review. others: Mostly FYI in case you have any concerns (sorry for the ...
4 years, 1 month ago (2016-11-10 21:03:09 UTC) #7
Mark Mentovai
https://codereview.chromium.org/2487783002/diff/40001/chrome/app/chrome_main_delegate.cc File chrome/app/chrome_main_delegate.cc (right): https://codereview.chromium.org/2487783002/diff/40001/chrome/app/chrome_main_delegate.cc#newcode364 chrome/app/chrome_main_delegate.cc:364: // sync. Can we add a test for equivalence? ...
4 years, 1 month ago (2016-11-10 22:06:17 UTC) #9
scottmg
https://codereview.chromium.org/2487783002/diff/40001/chrome/install_static/install_util.cc File chrome/install_static/install_util.cc (right): https://codereview.chromium.org/2487783002/diff/40001/chrome/install_static/install_util.cc#newcode586 chrome/install_static/install_util.cc:586: const bool specified_directory_was_invalid = On 2016/11/10 22:06:17, Mark Mentovai ...
4 years, 1 month ago (2016-11-11 00:24:47 UTC) #10
pastarmovj
https://codereview.chromium.org/2487783002/diff/40001/chrome/browser/policy/policy_path_parser_win.cc File chrome/browser/policy/policy_path_parser_win.cc (right): https://codereview.chromium.org/2487783002/diff/40001/chrome/browser/policy/policy_path_parser_win.cc#newcode46 chrome/browser/policy/policy_path_parser_win.cc:46: return install_static::ExpandPathVariables(untranslated_string); nit: Please put a small comment here ...
4 years, 1 month ago (2016-11-14 09:42:50 UTC) #11
scottmg
On 2016/11/11 00:24:47, scottmg wrote: > https://codereview.chromium.org/2487783002/diff/40001/chrome/install_static/install_util.cc > File chrome/install_static/install_util.cc (right): > > https://codereview.chromium.org/2487783002/diff/40001/chrome/install_static/install_util.cc#newcode586 > ...
4 years, 1 month ago (2016-11-15 19:54:59 UTC) #12
robertshield
I'm adding grt@ to this, because there's some installer refactoring going on that has recently ...
4 years, 1 month ago (2016-11-15 21:51:14 UTC) #14
scottmg
https://codereview.chromium.org/2487783002/diff/40001/chrome/app/chrome_main_delegate.cc File chrome/app/chrome_main_delegate.cc (right): https://codereview.chromium.org/2487783002/diff/40001/chrome/app/chrome_main_delegate.cc#newcode364 chrome/app/chrome_main_delegate.cc:364: // sync. On 2016/11/10 22:06:17, Mark Mentovai wrote: > ...
4 years, 1 month ago (2016-11-15 23:23:15 UTC) #15
grt (UTC plus 2)
https://codereview.chromium.org/2487783002/diff/80001/chrome/app/chrome_main_delegate.cc File chrome/app/chrome_main_delegate.cc (right): https://codereview.chromium.org/2487783002/diff/80001/chrome/app/chrome_main_delegate.cc#newcode399 chrome/app/chrome_main_delegate.cc:399: // WARNING! It is important that this code match ...
4 years, 1 month ago (2016-11-16 13:24:53 UTC) #16
scottmg
https://codereview.chromium.org/2487783002/diff/80001/chrome/app/chrome_main_delegate.cc File chrome/app/chrome_main_delegate.cc (right): https://codereview.chromium.org/2487783002/diff/80001/chrome/app/chrome_main_delegate.cc#newcode399 chrome/app/chrome_main_delegate.cc:399: // WARNING! It is important that this code match ...
4 years, 1 month ago (2016-11-16 21:01:18 UTC) #17
grt (UTC plus 2)
https://codereview.chromium.org/2487783002/diff/80001/chrome/app/chrome_main_delegate.cc File chrome/app/chrome_main_delegate.cc (right): https://codereview.chromium.org/2487783002/diff/80001/chrome/app/chrome_main_delegate.cc#newcode399 chrome/app/chrome_main_delegate.cc:399: // WARNING! It is important that this code match ...
4 years, 1 month ago (2016-11-17 09:20:26 UTC) #18
scottmg
On 2016/11/17 09:20:26, grt (UTC plus 1) wrote: > https://codereview.chromium.org/2487783002/diff/80001/chrome/app/chrome_main_delegate.cc > File chrome/app/chrome_main_delegate.cc (right): > ...
4 years, 1 month ago (2016-11-18 20:48:18 UTC) #21
scottmg
https://codereview.chromium.org/2487783002/diff/180001/chrome/install_static/install_details.h File chrome/install_static/install_details.h (right): https://codereview.chromium.org/2487783002/diff/180001/chrome/install_static/install_details.h#newcode202 chrome/install_static/install_details.h:202: static PrimaryInstallDetails* GetMutable(); I assume you will dislike this ...
4 years, 1 month ago (2016-11-18 20:48:27 UTC) #22
grt (UTC plus 2)
https://codereview.chromium.org/2487783002/diff/240001/chrome/app/user_data_dir_win_unittest.cc File chrome/app/user_data_dir_win_unittest.cc (right): https://codereview.chromium.org/2487783002/diff/240001/chrome/app/user_data_dir_win_unittest.cc#newcode28 chrome/app/user_data_dir_win_unittest.cc:28: install_static::GetUserDataDirectory(L"", &result, &invalid); can these tests be in install_static_unittests? ...
4 years, 1 month ago (2016-11-21 10:29:55 UTC) #33
scottmg
Thanks Greg! https://codereview.chromium.org/2487783002/diff/240001/chrome/app/user_data_dir_win_unittest.cc File chrome/app/user_data_dir_win_unittest.cc (right): https://codereview.chromium.org/2487783002/diff/240001/chrome/app/user_data_dir_win_unittest.cc#newcode28 chrome/app/user_data_dir_win_unittest.cc:28: install_static::GetUserDataDirectory(L"", &result, &invalid); On 2016/11/21 10:29:54, grt ...
4 years, 1 month ago (2016-11-21 19:34:01 UTC) #46
grt (UTC plus 2)
https://codereview.chromium.org/2487783002/diff/320001/chrome/install_static/install_details.h File chrome/install_static/install_details.h (right): https://codereview.chromium.org/2487783002/diff/320001/chrome/install_static/install_details.h#newcode55 chrome/install_static/install_details.h:55: size_t user_data_dir_length; do you think storing these lengths is ...
4 years, 1 month ago (2016-11-22 11:37:09 UTC) #47
scottmg
(not sure what to do about the chrome_elf DllMain yet, but just posting fixes on ...
4 years, 1 month ago (2016-11-22 17:16:07 UTC) #48
scottmg
https://codereview.chromium.org/2487783002/diff/320001/chrome/install_static/product_install_details.cc File chrome/install_static/product_install_details.cc (right): https://codereview.chromium.org/2487783002/diff/320001/chrome/install_static/product_install_details.cc#newcode59 chrome/install_static/product_install_details.cc:59: *user_data_dir = ExpandPathVariables(value); On 2016/11/22 17:16:07, scottmg wrote: > ...
4 years, 1 month ago (2016-11-22 20:40:42 UTC) #52
grt (UTC plus 2)
Sorry about leading you down the garden path. Taking another look now.
4 years, 1 month ago (2016-11-22 20:53:26 UTC) #53
grt (UTC plus 2)
https://codereview.chromium.org/2487783002/diff/320001/chrome/install_static/product_install_details.cc File chrome/install_static/product_install_details.cc (right): https://codereview.chromium.org/2487783002/diff/320001/chrome/install_static/product_install_details.cc#newcode59 chrome/install_static/product_install_details.cc:59: *user_data_dir = ExpandPathVariables(value); On 2016/11/22 20:40:41, scottmg wrote: > ...
4 years, 1 month ago (2016-11-22 21:06:59 UTC) #54
scottmg
On 2016/11/22 20:53:26, grt (UTC plus 1) wrote: > Sorry about leading you down the ...
4 years, 1 month ago (2016-11-22 21:45:18 UTC) #55
scottmg
On 2016/11/22 21:06:59, grt (UTC plus 1) wrote: > https://codereview.chromium.org/2487783002/diff/320001/chrome/install_static/product_install_details.cc > File chrome/install_static/product_install_details.cc (right): > ...
4 years, 1 month ago (2016-11-22 21:59:09 UTC) #56
scottmg
https://codereview.chromium.org/2487783002/diff/380001/chrome/install_static/install_details.h File chrome/install_static/install_details.h (right): https://codereview.chromium.org/2487783002/diff/380001/chrome/install_static/install_details.h#newcode75 chrome/install_static/install_details.h:75: const InstallConstants* mode() const { return payload_->mode; } On ...
4 years, 1 month ago (2016-11-22 21:59:57 UTC) #57
grt (UTC plus 2)
i'm not a big fan of having the thunk live so far away from the ...
4 years ago (2016-11-23 09:47:38 UTC) #62
scottmg
Thanks for slogging through this with me Greg. https://codereview.chromium.org/2487783002/diff/400001/chrome/install_static/install_util.cc File chrome/install_static/install_util.cc (right): https://codereview.chromium.org/2487783002/diff/400001/chrome/install_static/install_util.cc#newcode442 chrome/install_static/install_util.cc:442: assert(ret); ...
4 years ago (2016-11-23 17:59:04 UTC) #63
scottmg
More owners reviews please :) robertshield: chrome_elf/ pastarmovj: chrome/browser/policy/policy_path_parser_win.cc asvitkine: chrome/browser/metrics/chrome_metrics_service_client.cc Thanks!
4 years ago (2016-11-23 18:01:37 UTC) #64
Alexei Svitkine (slow)
chrome_metrics_service_client.cc LGTM
4 years ago (2016-11-23 21:56:57 UTC) #66
pastarmovj
policy lgtm
4 years ago (2016-11-25 06:54:11 UTC) #67
robertshield
On 2016/11/25 06:54:11, pastarmovj wrote: > policy lgtm quick question re: > We do not ...
4 years ago (2016-11-25 07:51:58 UTC) #68
scottmg
On 2016/11/25 07:51:58, robertshield_slow_reviews wrote: > On 2016/11/25 06:54:11, pastarmovj wrote: > > policy lgtm ...
4 years ago (2016-11-28 18:17:52 UTC) #70
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/2487783002/420001
4 years ago (2016-11-28 18:18:38 UTC) #73
Mark Mentovai
(LGTM)
4 years ago (2016-11-28 18:21:39 UTC) #74
scottmg
On 2016/11/28 18:17:52, scottmg (slow on 25nov) wrote: > On 2016/11/25 07:51:58, robertshield_slow_reviews wrote: > ...
4 years ago (2016-11-28 18:24:02 UTC) #75
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/339504) win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, ...
4 years ago (2016-11-28 20:19:29 UTC) #77
scottmg
On 2016/11/28 20:19:29, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years ago (2016-11-29 00:33:08 UTC) #88
scottmg
On 2016/11/29 00:33:08, scottmg wrote: > On 2016/11/28 20:19:29, commit-bot: I haz the power wrote: ...
4 years ago (2016-11-29 00:43:33 UTC) #89
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/2487783002/500001
4 years ago (2016-11-29 00:57:15 UTC) #95
commit-bot: I haz the power
Committed patchset #22 (id:500001)
4 years ago (2016-11-29 03:03:30 UTC) #97
commit-bot: I haz the power
Patchset 22 (id:??) landed as https://crrev.com/7433a2b305bbfcb8c469cddab9a1a3ab2c5b70d1 Cr-Commit-Position: refs/heads/master@{#434855}
4 years ago (2016-11-29 03:04:27 UTC) #99
grt (UTC plus 2)
On 2016/11/29 00:33:08, scottmg wrote: > On 2016/11/28 20:19:29, commit-bot: I haz the power wrote: ...
4 years ago (2016-11-29 08:40:50 UTC) #100
scottmg
On 2016/11/29 08:40:50, grt (UTC plus 1) wrote: > On 2016/11/29 00:33:08, scottmg wrote: > ...
4 years ago (2016-11-29 16:20:38 UTC) #101
scottmg
On 2016/11/29 16:20:38, scottmg wrote: > On 2016/11/29 08:40:50, grt (UTC plus 1) wrote: > ...
4 years ago (2016-11-29 18:39:00 UTC) #102
scottmg
On 2016/11/29 18:39:00, scottmg wrote: > On 2016/11/29 16:20:38, scottmg wrote: > > On 2016/11/29 ...
4 years ago (2016-11-29 20:11:09 UTC) #103
scottmg
A revert of this CL (patchset #22 id:500001) has been created in https://codereview.chromium.org/2549593002/ by scottmg@chromium.org. ...
4 years ago (2016-12-01 18:16:18 UTC) #104
scottmg
On 2016/12/01 18:16:18, scottmg wrote: > A revert of this CL (patchset #22 id:500001) has ...
4 years ago (2016-12-01 18:21:35 UTC) #105
tapted
https://codereview.chromium.org/2487783002/diff/500001/chrome/install_static/user_data_dir_win_unittest.cc File chrome/install_static/user_data_dir_win_unittest.cc (right): https://codereview.chromium.org/2487783002/diff/500001/chrome/install_static/user_data_dir_win_unittest.cc#newcode120 chrome/install_static/user_data_dir_win_unittest.cc:120: rv = key1.WriteValue(kUserDataDirRegistryKey, L"111"); Some tests have started failing ...
3 years, 10 months ago (2017-02-05 23:59:46 UTC) #107
pastarmovj
3 years, 10 months ago (2017-02-06 06:54:21 UTC) #108
Message was sent while issue was closed.
On 2016/11/29 20:11:09, scottmg wrote:
> On 2016/11/29 18:39:00, scottmg wrote:
> > On 2016/11/29 16:20:38, scottmg wrote:
> > > On 2016/11/29 08:40:50, grt (UTC plus 1) wrote:
> > > > On 2016/11/29 00:33:08, scottmg wrote:
> > > > > On 2016/11/28 20:19:29, commit-bot: I haz the power wrote:
> > > > > > Try jobs failed on following builders:
> > > > > >   win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED,
> > > > > >
> > > > >
> > > >
> > >
> >
>
http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_...)
> > > > > >   win_chromium_x64_rel_ng on master.tryserver.chromium.win
> (JOB_FAILED,
> > > > > >
> > > > >
> > > >
> > >
> >
>
http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_...)
> > > > > 
> > > > > [[[
> > > > > 
> > > > > I'm getting odd failures from swarming runs in SHGetSpecialFolderPath
> > > causing
> > > > > failures in the policy_path_parser code that I mostly just
relocated...
> > > > > 
> > > > > e.g.
> > > > >
> > > >
> > >
> >
>
https://chromium-swarm.appspot.com/task?id=32c648287f41ca10&refresh=10&show_r...
> > > > > where it returns GetLastError() == "An attempt was made to reference a
> > token
> > > > > that does not exist." (or possibly SHGetSpecialFolderPath doesn't set
> last
> > > > > error, but in any case, it's unexpectedly failing trying to retrieve
the
> > > > Windows
> > > > > directory.)
> > > > > 
> > > > > Still slowly debugging, but just in case someone knows what's going
> on...
> > > > > 
> > > > > ]]]
> > > > 
> > > > Two thoughts:
> > > > 1. Is this policy path stuff happening in (sandboxed) child procs? If
so,
> > this
> > > > is problematic (see, for example, https://crbug.com/502416). If this is
> the
> > > > case, is it necessary? I thought we passed the user data dir to child
> procs
> > > > explicitly.
> > > 
> > > It would happen in sandboxed processes pre-lockdown, yeah. I believe that
> > would
> > > have happened before too (as --user-data-dir only got appended when an
> invalid
> > > directory was used and it had to be overridden to a valid one), but I'll
> > confirm
> > > that now.
> > 
> > The only things that appear to get access to the profile dir are browser,
> > service, nacl-broker, and nacl-loader, per chrome::ProcessNeedsProfileDir().
> > Others don't even call InitializeUserDataDir() on Windows.
> > 
> > I confirmed manually that --type=service correctly retrieves the user data
dir
> > from HKLM registry key and is able to correctly expand ${windows} in that
> > context.
> > 
> > I'm less certain about the NaCl process types, as ... um, enable_nacl=false.
A
> > wild guess is that they're not likely sandboxed, but I'm not actually sure
> about
> > that. Working on confirming that one way or the other now.
> 
> Gurgle. So, ... not sure nacl passes --user-data-dir through to the subprocess
>
https://cs.chromium.org/chromium/src/components/nacl/browser/nacl_process_hos...
> And sometimes (when on wow64) it's actually running nacl64.exe, not
chrome.exe.
> 
> I'm still trying to actually find some nacl content that I can try to run.
> 
> ...
> 
> Oh, I remember looking into a crash reported in
> https://bugs.chromium.org/p/chromium/issues/detail?id=467025#c28 that was NaCl
> x86! :)
> 
> ...
> 
> Debugging has so far proved not overly effective.
> 
> nacl64.exe when run as --nacl-broker doesn't pass --user-data-dir to
> nacl-loader. So I guess loader is not a problem.
> 
> Looking way back at
https://chromiumcodereview.appspot.com/10390003/?_ga=1.96993942.806489194.146...
it seems it
> has something to do with user-data-dir on network shares.
> 
> I tried setting --user-data-dir to a network share and running NaCl wow64
> content and I believe it's working as expected. I don't really see NaCl
(broker)
> really doing anything with the user data dir though, so I'm not sure what it
was
> actually needed for. It's possible it's not needed any longer. Julian, do you
> happen to remember from that CL long ago?

The issue back then was that a sandboxed process can not get full access network
filesystems with its stripped process token but there were many sandboxed
processes which would try to create the user data directory and fail and
terminate. So I had to come up with a way to decide which process was not ok to
do that and prevent it from doing so.

If you have concerns any of this might have regressed now you can test it by
sharing a folder from another computer. Mount it locally on yours and run with
--user-data-dir pointing to the shared mount point and see if Chrome will run
ok. I am not sure anymore if sharing a folder on your own machine and mounting
it locally was good enough.

> 
> Since it's getting passed in on the command line, and nacl64 doesn't use
> chrome_elf anyway, I'm going to somewhat cautiously declare it "fine".
> 
> 
> > > 
> > > > 2. I forgot what the second one was. Hopefully the first one is the
> problem.
> > > :-)
> > > 
> > > It seems to be working OK in normal usage (i.e. chrome) and it tests
> locally,
> > > just not for HKLM on swarming. Maybe there's some variable I overlooked in
> > local
> > > testing though.

Powered by Google App Engine
This is Rietveld 408576698