Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WebPayments] Unify early exits in AndroidPaymentAppFactory
(M110 merge) This CL corrects an issue where AppFinder::OnGetAppDescriptions had a different early-exit check than AppFinder::IsReadyToPay. This could cause OnGetAppDescriptions to reach AppFinder::OnDoneCreatingPaymentApps and delete the current instance whilst it was still in use. A test is added that exercises the failing path before the fix. (cherry picked from commit f06f8ce) Bug: 1414738 Change-Id: I31dd8a62a83acf60412df1d055aeba311f2df430 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4245784 Reviewed-by: Nick Burris <nburris@chromium.org> Commit-Queue: Stephen McGruer <smcgruer@chromium.org> Cr-Original-Commit-Position: refs/heads/main@{#1104754} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4262809 Auto-Submit: Stephen McGruer <smcgruer@chromium.org> Cr-Commit-Position: refs/branch-heads/5481@{#1165} Cr-Branched-From: 130f3e4-refs/heads/main@{#1084008}
- Loading branch information
1 parent
3ab02c6
commit a88bdd6
Showing
5 changed files
with
197 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
components/payments/content/mock_android_app_communication.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Copyright 2023 The Chromium Authors | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#include "components/payments/content/mock_android_app_communication.h" | ||
#include "content/public/browser/browser_context.h" | ||
|
||
namespace payments { | ||
|
||
MockAndroidAppCommunication::MockAndroidAppCommunication( | ||
content::BrowserContext* context) | ||
: AndroidAppCommunication(context) {} | ||
|
||
MockAndroidAppCommunication::~MockAndroidAppCommunication() = default; | ||
|
||
} // namespace payments |
Oops, something went wrong.