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

Issue 2083463003: Revert of Add chrome_crash_reporter_client_win.cc to the source file list for chrome_elf (Closed)

Created:
4 years, 6 months ago by benwells
Modified:
4 years, 6 months ago
CC:
chromium-reviews, darin-cc_chromium.org, kalyank, sadrul, caitkp+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Revert of Add chrome_crash_reporter_client_win.cc to the source file list for chrome_elf (patchset #25 id:470001 of https://codereview.chromium.org/2053953002/ ) Reason for revert: It looks like this patch introduced test failures on DrMemory. First failing build: https://build.chromium.org/p/chromium.memory.fyi/builders/Windows%20Unit%20%28DrMemory%29/builds/5092 Sample error: ELFImportsTest.ChromeElfSanityCheck: c:\b\build\slave\drm-cr\build\src\chrome_elf\elf_imports_unittest.cc(107): error: Value of: match Actual: false Expected: true Illegal import in chrome_elf.dll: base.dll Original issue's description: > Add chrome_crash_reporter_client_win.cc to the source file list for chrome_elf > > This is in preparation for switching the exception handling in > chrome_elf from breakpad to crashpad. I will do that in a subsequent > patch. > > This patch contains the following changes. > 1. base > Changes here are to restrict the usage of FilePath and file_util from > the portions of the base which are referenced by crashpad and > ChromeCrashReporterClient. These in turn end up bringing in > dependencies on message_loop which won't work in chrome_elf. Fixed > logging.cc to not use file path and file util and instead use Windows > API's to achieve the same result. Fixed platform_thread_win.cc to > avoid using windows_version.h as that pulls in object watcher and > other badness. > > 2. crash_pad_win.cc. Remove usage of PathService and avoid using > startup_metric_utils. That pulls in registry.h which in turn pulls in > object watcher. > > 3. ChromeCrashReporterClient (Windows). > Removed usage of chrome::RegisterChromeCrashKeys and instead locally > defined a smaller version of that function. I added a TODO at the top > here to remove these functions and the RegisterKeys function from the > CrashClient interface, whenever scottmg's patch which avoids pre > registration of crash keys lands. I also added a static function > InitializeCrashReportingForProcess to this class which does the work > for registering the process with crashpad. > > 4. install_static. > Added some constants to this library and a new function > GetSwitchValueFromCommandLine to retrieve the value of a switch from > the command line. This is to avoid depending on shell32 via base > command line. Added a unittest for this function. > > 5. base\message_loop\message_pump_win.cc > This file gets pulled in by users of platform_thread_win.cc which is > used indirectly by lots of base code. This line > tracked_objects::ThreadData::InitializeThreadContext(name); brings in > the deps via TRACE_EVENT. I changed the deps to function pointers > with CHECKs for user32 being loaded and the function pointers being > valid to catch these in the wild. > > BUG=604923 > TEST=InstallStaticTest.GetSwitchValueFromCommandLineTest > > Committed: https://crrev.com/f265187bf390845c6d353fa7c4a9a72575fd86dd > Cr-Commit-Position: refs/heads/master@{#400278} TBR=scottmg@chromium.org,robertshield@chromium.org,grt@chromium.org,fdoray@chromium.org,thestig@chromium.org,jam@chromium.org,ananta@chromium.org # Not skipping CQ checks because original CL landed more than 1 days ago. BUG=604923

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -517 lines) Patch
M base/debug/stack_trace_win.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M base/files/file_path.cc View 2 chunks +2 lines, -6 lines 0 comments Download
M base/logging.cc View 2 chunks +6 lines, -15 lines 0 comments Download
M base/message_loop/message_pump_win.h View 2 chunks +3 lines, -3 lines 0 comments Download
M base/message_loop/message_pump_win.cc View 21 chunks +34 lines, -119 lines 0 comments Download
M base/process/launch.h View 2 chunks +2 lines, -2 lines 0 comments Download
M base/process/launch_win.cc View 3 chunks +12 lines, -0 lines 0 comments Download
M base/strings/string_number_conversions.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M base/strings/string_util.cc View 1 chunk +1 line, -0 lines 0 comments Download
M base/threading/platform_thread_win.cc View 2 chunks +4 lines, -1 line 0 comments Download
M base/trace_event/winheap_dump_provider_win.cc View 2 chunks +8 lines, -1 line 0 comments Download
M chrome/app/chrome_crash_reporter_client_win.h View 1 chunk +0 lines, -7 lines 0 comments Download
M chrome/app/chrome_crash_reporter_client_win.cc View 2 chunks +4 lines, -187 lines 0 comments Download
M chrome/install_static/install_util.h View 2 chunks +0 lines, -8 lines 0 comments Download
M chrome/install_static/install_util.cc View 2 chunks +0 lines, -51 lines 0 comments Download
M chrome/install_static/install_util_unittest.cc View 1 chunk +0 lines, -64 lines 0 comments Download
M chrome_elf/BUILD.gn View 2 chunks +3 lines, -23 lines 0 comments Download
M chrome_elf/DEPS View 1 chunk +0 lines, -1 line 0 comments Download
M chrome_elf/chrome_elf.gyp View 2 chunks +0 lines, -3 lines 0 comments Download
M components/crash/content/app/crashpad.cc View 2 chunks +3 lines, -5 lines 0 comments Download
M components/crash/content/app/crashpad_win.cc View 7 chunks +22 lines, -17 lines 0 comments Download
M content/browser/browser_main_runner.cc View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 7 (2 generated)
benwells
Created Revert of Add chrome_crash_reporter_client_win.cc to the source file list for chrome_elf
4 years, 6 months ago (2016-06-20 10:19:15 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2083463003/1
4 years, 6 months ago (2016-06-20 10:19:34 UTC) #3
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/23225) ios-simulator on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 6 months ago (2016-06-20 10:21:26 UTC) #5
Lei Zhang
Did this eventually get reverted? Can we close this?
4 years, 6 months ago (2016-06-23 16:13:36 UTC) #6
scottmg
4 years, 6 months ago (2016-06-23 16:45:51 UTC) #7
On 2016/06/23 16:13:36, Lei Zhang (Slow) wrote:
> Did this eventually get reverted? Can we close this?

Yes, closed.

Powered by Google App Engine
This is Rietveld 408576698