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

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

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

Description

Revert of Make Crashpad use the user data dir, rather than always default location (patchset #22 id:500001 of https://codereview.chromium.org/2487783002/ ) Reason for revert: Reverting for now until https://codereview.chromium.org/2543503003/ lands (making the install_static command line parser smarter), and then I'll reland this unchanged. BUG=670012 Original issue's 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} TBR=pastarmovj@chromium.org,mark@chromium.org,pennymac@chromium.org,bcwhite@chromium.org,robertshield@chromium.org,grt@chromium.org,asvitkine@chromium.org # Not skipping CQ checks because original CL landed more than 1 days ago. BUG=565446

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+316 lines, -797 lines) Patch
M chrome/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/app/BUILD.gn View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/chrome_crash_reporter_client_win.cc View 4 chunks +12 lines, -12 lines 0 comments Download
M chrome/app/chrome_main_delegate.cc View 4 chunks +11 lines, -38 lines 0 comments Download
M chrome/browser/metrics/chrome_metrics_service_client.cc View 1 chunk +8 lines, -5 lines 0 comments Download
M chrome/browser/policy/policy_path_parser_win.cc View 3 chunks +102 lines, -5 lines 0 comments Download
M chrome/install_static/BUILD.gn View 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/install_static/OWNERS View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/install_static/install_details.h View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/install_static/install_util.h View 4 chunks +19 lines, -24 lines 0 comments Download
M chrome/install_static/install_util.cc View 8 chunks +126 lines, -101 lines 0 comments Download
M chrome/install_static/install_util_unittest.cc View 2 chunks +32 lines, -29 lines 0 comments Download
D chrome/install_static/policy_path_parser.h View 1 chunk +0 lines, -18 lines 0 comments Download
D chrome/install_static/policy_path_parser.cc View 1 chunk +0 lines, -173 lines 0 comments Download
D chrome/install_static/user_data_dir.h View 1 chunk +0 lines, -44 lines 0 comments Download
D chrome/install_static/user_data_dir.cc View 1 chunk +0 lines, -156 lines 0 comments Download
D chrome/install_static/user_data_dir_win_unittest.cc View 1 chunk +0 lines, -160 lines 0 comments Download
M chrome_elf/chrome_elf.def View 1 chunk +0 lines, -1 line 0 comments Download
M chrome_elf/chrome_elf_main.cc View 3 chunks +4 lines, -20 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
scottmg
Created Revert of Make Crashpad use the user data dir, rather than always default location
4 years ago (2016-12-01 18:16:19 UTC) #2
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/2549593002/1
4 years ago (2016-12-01 18:16:46 UTC) #3
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/271956) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years ago (2016-12-01 18:20:03 UTC) #5
Mark Mentovai
LGTM :(
4 years ago (2016-12-01 19:03:06 UTC) #6
grt (UTC plus 2)
4 years ago (2016-12-02 09:35:22 UTC) #7
lgtm

Powered by Google App Engine
This is Rietveld 408576698