Closed Bug 1759993 Opened 2 years ago Closed 2 years ago

QM: Introduce QM_IPC_FAIL macro

Categories

(Core :: Storage: Quota Manager, task, P2)

task

Tracking

()

RESOLVED FIXED
102 Branch
Tracking Status
firefox102 --- fixed

People

(Reporter: janv, Assigned: janv)

Details

Attachments

(1 file)

Here's an existing code:

QM_TRY_UNWRAP(auto principal,
              mozilla::ipc::PrincipalInfoToPrincipal(aPrincipalInfo),
	      IPC_FAIL(this, "PrincipalInfoToPrincipal failed!"));

It could look like this:

QM_TRY_UNWRAP(auto principal,
              mozilla::ipc::PrincipalInfoToPrincipal(aPrincipalInfo),
	      QM_IPC_FAIL);

The message passed to IPC_FAIL would be automatically generated by QM_TRY macros based on the expression.

Pushed by jvarga@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/def50d42f374
QM: Introduce QM_IPC_FAIL macro; r=ipc-reviewers,mccr8,hsingh
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 102 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: