[WebInstallAPI] Refine error handling to use kDataError [chromium/src : main]

0 views
Skip to first unread message

Kristin Lee (Gerrit)

unread,
Jan 9, 2026, 4:23:25 PM (24 hours ago) Jan 9
to Lia Hiscock, Lu Huang, Robert Paveza, Chromium LUCI CQ, chromium...@chromium.org, dibyapal+wa...@chromium.org, dmurph+watc...@chromium.org, kuragin+web-ap...@chromium.org, loyso...@chromium.org, mgiuca...@chromium.org, philli...@chromium.org, webap...@microsoft.com, zelin+watch-we...@chromium.org
Attention needed from Lia Hiscock

New activity on the change

Open in Gerrit

Related details

Attention is currently required from:
  • Lia Hiscock
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I59609bebcabaca281231b974047acc58fdd9d741
Gerrit-Change-Number: 7411458
Gerrit-PatchSet: 5
Gerrit-Owner: Kristin Lee <krist...@microsoft.com>
Gerrit-Reviewer: Kristin Lee <krist...@microsoft.com>
Gerrit-Reviewer: Lia Hiscock <liahi...@microsoft.com>
Gerrit-Reviewer: Lu Huang <lu...@microsoft.com>
Gerrit-CC: Robert Paveza <Rob.P...@microsoft.com>
Gerrit-Attention: Lia Hiscock <liahi...@microsoft.com>
Gerrit-Comment-Date: Fri, 09 Jan 2026 21:23:16 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Lia Hiscock (Gerrit)

unread,
Jan 9, 2026, 9:51:03 PM (18 hours ago) Jan 9
to Kristin Lee, Lu Huang, Robert Paveza, Chromium LUCI CQ, chromium...@chromium.org, dibyapal+wa...@chromium.org, dmurph+watc...@chromium.org, kuragin+web-ap...@chromium.org, loyso...@chromium.org, mgiuca...@chromium.org, philli...@chromium.org, webap...@microsoft.com, zelin+watch-we...@chromium.org
Attention needed from Kristin Lee

Lia Hiscock voted and added 2 comments

Votes added by Lia Hiscock

Code-Review+1

2 comments

File chrome/browser/web_applications/web_install_service_impl.cc
Line 585, Patchset 1: .Run(web_app::WebInstallApiResult::kUnexpectedFailure,
Kristin Lee . unresolved

Wondering if it would be helpful to add a new WebInstallApiResult? Such as something like `kRedirectUrlUsed`, `kInstallInfoFetchFailed`? We could add ApiResults for the other InstallResultCodes that were added in lines 706-708?

Lia Hiscock

This is only for background launches so I think for now we're ok without that much granularity.

Line 709, Patchset 1: case webapps::InstallResultCode::kInstallURLRedirected:
Kristin Lee . resolved

Thoughts on firing DataError in the meantime for redirects instead of AbortError? Considering the customer feedback about how it's confusing that AbortError is also fired when the user rejects the install dialog, I thought firing DataError essentially helps signal to developers that their arguments need to be updated which seems more fitting for redirects that currently are supported.

Lia Hiscock

This sounds reasonable.

Open in Gerrit

Related details

Attention is currently required from:
  • Kristin Lee
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I59609bebcabaca281231b974047acc58fdd9d741
    Gerrit-Change-Number: 7411458
    Gerrit-PatchSet: 5
    Gerrit-Owner: Kristin Lee <krist...@microsoft.com>
    Gerrit-Reviewer: Kristin Lee <krist...@microsoft.com>
    Gerrit-Reviewer: Lia Hiscock <liahi...@microsoft.com>
    Gerrit-Reviewer: Lu Huang <lu...@microsoft.com>
    Gerrit-CC: Robert Paveza <Rob.P...@microsoft.com>
    Gerrit-Attention: Kristin Lee <krist...@microsoft.com>
    Gerrit-Comment-Date: Sat, 10 Jan 2026 02:50:51 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Comment-In-Reply-To: Kristin Lee <krist...@microsoft.com>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages