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

Issue 2748903003: [Mac] Use Crashpad in the AlertNotificationService.xpc. (Closed)

Created:
3 years, 9 months ago by Robert Sesek
Modified:
3 years, 9 months ago
CC:
chromium-reviews, sadrul, awdf+watch_chromium.org, Peter Beverloo, mlamouri+watch-notifications_chromium.org, jam, darin-cc_chromium.org, mac-reviews_chromium.org, kalyank
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Mac] Use Crashpad in the AlertNotificationService.xpc. Launchd does not transfer the service owner's exception port to the service, nor can an exception handler be specified as an appliction domain service name in a service's Info.plist (that can only target a higher-level domain service). Since Crashpad is not registered as a system or user domain service, its handler port is instead sent to the XPC service, where the service can configure Crashpad itself. BUG=699607 Review-Url: https://codereview.chromium.org/2748903003 Cr-Commit-Position: refs/heads/master@{#457244} Committed: https://chromium.googlesource.com/chromium/src/+/25df70294a0c70bb8b39a30ea69ef0be072c4097

Patch Set 1 #

Total comments: 12

Patch Set 2 : Comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+218 lines, -34 lines) Patch
M chrome/browser/notifications/notification_platform_bridge_mac.mm View 1 5 chunks +37 lines, -6 lines 0 comments Download
M chrome/browser/ui/cocoa/notifications/BUILD.gn View 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/notifications/alert_notification_service.mm View 4 chunks +24 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/notifications/notification_delivery.h View 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/notifications/notification_service_delegate.mm View 3 chunks +4 lines, -4 lines 0 comments Download
A chrome/browser/ui/cocoa/notifications/xpc_mach_port.h View 1 chunk +36 lines, -0 lines 0 comments Download
A chrome/browser/ui/cocoa/notifications/xpc_mach_port.mm View 1 chunk +80 lines, -0 lines 0 comments Download
M components/crash/content/app/crashpad.h View 1 2 chunks +13 lines, -0 lines 1 comment Download
M components/crash/content/app/crashpad.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M components/crash/content/app/crashpad_mac.mm View 1 1 chunk +3 lines, -9 lines 0 comments Download
M components/crash/content/app/crashpad_win.cc View 1 4 chunks +6 lines, -15 lines 0 comments Download

Messages

Total messages: 12 (5 generated)
Robert Sesek
The XPC part of this is pretty much set. But we may need to make ...
3 years, 9 months ago (2017-03-14 22:04:07 UTC) #2
Robert Sesek
https://codereview.chromium.org/2748903003/diff/1/components/crash/content/app/crashpad_mac.mm File components/crash/content/app/crashpad_mac.mm (right): https://codereview.chromium.org/2748903003/diff/1/components/crash/content/app/crashpad_mac.mm#newcode37 components/crash/content/app/crashpad_mac.mm:37: LAZY_INSTANCE_INITIALIZER; Also worth noting that this is how crashpad_win.cc ...
3 years, 9 months ago (2017-03-14 22:14:54 UTC) #3
Mark Mentovai
LG mostly https://codereview.chromium.org/2748903003/diff/1/chrome/browser/notifications/notification_platform_bridge_mac.mm File chrome/browser/notifications/notification_platform_bridge_mac.mm (right): https://codereview.chromium.org/2748903003/diff/1/chrome/browser/notifications/notification_platform_bridge_mac.mm#newcode1 chrome/browser/notifications/notification_platform_bridge_mac.mm:1: // Copyright 2015 The Chromium Authors. All ...
3 years, 9 months ago (2017-03-14 23:24:52 UTC) #4
Robert Sesek
https://codereview.chromium.org/2748903003/diff/1/chrome/browser/ui/cocoa/notifications/alert_notification_service.mm File chrome/browser/ui/cocoa/notifications/alert_notification_service.mm (right): https://codereview.chromium.org/2748903003/diff/1/chrome/browser/ui/cocoa/notifications/alert_notification_service.mm#newcode39 chrome/browser/ui/cocoa/notifications/alert_notification_service.mm:39: didSetExceptionPort_ = client.SetHandlerMachPort(std::move(sendRight)); On 2017/03/14 23:24:51, Mark Mentovai wrote: ...
3 years, 9 months ago (2017-03-15 19:22:10 UTC) #6
Mark Mentovai
LGTM https://codereview.chromium.org/2748903003/diff/20001/components/crash/content/app/crashpad.h File components/crash/content/app/crashpad.h (right): https://codereview.chromium.org/2748903003/diff/20001/components/crash/content/app/crashpad.h#newcode69 components/crash/content/app/crashpad.h:69: crashpad::CrashpadClient& GetCrashpadClient(); Non-const ref or pointer, either one ...
3 years, 9 months ago (2017-03-15 19:38:43 UTC) #7
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/2748903003/20001
3 years, 9 months ago (2017-03-15 21:20:07 UTC) #9
commit-bot: I haz the power
3 years, 9 months ago (2017-03-15 22:43:37 UTC) #12
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/25df70294a0c70bb8b39a30ea69e...

Powered by Google App Engine
This is Rietveld 408576698