OOR-CORS: Modifies CORS::GetErrorString to take a unified struct
CORS::GetErrorString takes multiple arguments, and required parameters depend on error kinds. This will make developers who want to call it be confused, when we add more parameters, we need to modify all call sites. This patch introduces CORS::ErrorParameter to unify parameters for GetErrorString. This solves problems mentioned above, and also allows us to have better coding error checks. Once the OOR migration is done, we will be able to remove error specific ErrorParameter builders, or can even remove ErrorParameter again because we can remove the most intermediate call sites from Blink. Bug: 803766 Cq-Include-Trybots: master.tryserver.chromium.linux:linux_mojo Change-Id: I2647ddfea4c48aa48a744b8b636d032aec3531e1 Reviewed-on: https://chromium-review.googlesource.com/918323 Commit-Queue: Takashi Toyoshima <toyoshim@chromium.org> Reviewed-by:Kinuko Yasuda <kinuko@chromium.org> Reviewed-by:
Takeshi Yoshino <tyoshino@chromium.org> Cr-Commit-Position: refs/heads/master@{#537615}
Showing
This diff is collapsed.
Please register or sign in to comment