Delay price drop and product image acquisition on Tab Resumption [chromium/src : main]

0 views
Skip to first unread message

Chris Lu (Gerrit)

unread,
Oct 10, 2025, 4:20:30 PM (9 hours ago) Oct 10
to David Maunder, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, mdjone...@chromium.org, yuezhang...@chromium.org, ayman...@chromium.org, feature-me...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org
Attention needed from David Maunder

Chris Lu added 1 comment

File ios/chrome/browser/content_suggestions/ui_bundled/tab_resumption/tab_resumption_mediator.mm
Line 1087, Patchset 16 (Latest): [self.delegate tabResumptionHelperDidReceiveItem];
Chris Lu . unresolved

If we set _itemConfig and call this, the card is added to the magic stack. I don't quite see divergent logic where only in arm 6, we add the card and then go fetch the image and update it later. It seems like we always did that?

Open in Gerrit

Related details

Attention is currently required from:
  • David Maunder
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: I1b11230f21e82711e305615a02640072c3e61db8
Gerrit-Change-Number: 7028739
Gerrit-PatchSet: 16
Gerrit-Owner: David Maunder <dav...@chromium.org>
Gerrit-Reviewer: Chris Lu <thegre...@chromium.org>
Gerrit-Reviewer: David Maunder <dav...@chromium.org>
Gerrit-Attention: David Maunder <dav...@chromium.org>
Gerrit-Comment-Date: Fri, 10 Oct 2025 20:20:07 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Chris Lu (Gerrit)

unread,
Oct 10, 2025, 5:53:45 PM (8 hours ago) Oct 10
to David Maunder, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, mdjone...@chromium.org, yuezhang...@chromium.org, ayman...@chromium.org, feature-me...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org
Attention needed from David Maunder

Chris Lu added 2 comments

File ios/chrome/browser/content_suggestions/ui_bundled/tab_resumption/tab_resumption_mediator.mm
Line 1087, Patchset 16 (Latest): [self.delegate tabResumptionHelperDidReceiveItem];
Chris Lu . resolved

If we set _itemConfig and call this, the card is added to the magic stack. I don't quite see divergent logic where only in arm 6, we add the card and then go fetch the image and update it later. It seems like we always did that?

Chris Lu

Acknowledged

File ios/chrome/browser/content_suggestions/ui_bundled/tab_resumption/tab_resumption_view.mm
Line 126, Patchset 16 (Latest):- (void)shopCardDataCompleted:(TabResumptionItem*)item {
Chris Lu . unresolved

Is there any way we can avoid completely recreating the entire contents and just update the price chip and the image? I am not sure what specific things we are waiting for in TabResumptionMediatorProxy::CanApplyOptimizationOnDemand, but if being able to specifically update elements helps us understand what exactly to expect in this code path.

Gerrit-Comment-Date: Fri, 10 Oct 2025 21:53:21 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Chris Lu <thegre...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Chris Lu (Gerrit)

unread,
Oct 10, 2025, 7:29:25 PM (6 hours ago) Oct 10
to David Maunder, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, mdjone...@chromium.org, yuezhang...@chromium.org, ayman...@chromium.org, feature-me...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org
Attention needed from David Maunder

Chris Lu voted and added 2 comments

Votes added by Chris Lu

Code-Review+1

2 comments

Patchset-level comments
File-level comment, Patchset 16 (Latest):
Chris Lu . resolved

lgtm thanks!

File ios/chrome/browser/content_suggestions/ui_bundled/tab_resumption/tab_resumption_view.mm
Line 126, Patchset 16 (Latest):- (void)shopCardDataCompleted:(TabResumptionItem*)item {
Chris Lu . resolved

Is there any way we can avoid completely recreating the entire contents and just update the price chip and the image? I am not sure what specific things we are waiting for in TabResumptionMediatorProxy::CanApplyOptimizationOnDemand, but if being able to specifically update elements helps us understand what exactly to expect in this code path.

Chris Lu

discussed offline, will keep as is.

Open in Gerrit

Related details

Attention is currently required from:
  • David Maunder
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement satisfiedCode-Review
  • 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: I1b11230f21e82711e305615a02640072c3e61db8
Gerrit-Change-Number: 7028739
Gerrit-PatchSet: 16
Gerrit-Owner: David Maunder <dav...@chromium.org>
Gerrit-Reviewer: Chris Lu <thegre...@chromium.org>
Gerrit-Reviewer: David Maunder <dav...@chromium.org>
Gerrit-Attention: David Maunder <dav...@chromium.org>
Gerrit-Comment-Date: Fri, 10 Oct 2025 23:29:01 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Chris Lu <thegre...@chromium.org>
satisfied_requirement
open
diffy

David Maunder (Gerrit)

unread,
Oct 10, 2025, 7:57:47 PM (6 hours ago) Oct 10
to Chris Lu, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, mdjone...@chromium.org, yuezhang...@chromium.org, ayman...@chromium.org, feature-me...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org

David Maunder voted Commit-Queue+2

Commit-Queue+2
Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement satisfiedCode-Review
  • 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: I1b11230f21e82711e305615a02640072c3e61db8
Gerrit-Change-Number: 7028739
Gerrit-PatchSet: 16
Gerrit-Owner: David Maunder <dav...@chromium.org>
Gerrit-Reviewer: Chris Lu <thegre...@chromium.org>
Gerrit-Reviewer: David Maunder <dav...@chromium.org>
Gerrit-Comment-Date: Fri, 10 Oct 2025 23:57:21 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Chromium LUCI CQ (Gerrit)

unread,
Oct 10, 2025, 8:00:52 PM (6 hours ago) Oct 10
to David Maunder, Chris Lu, AyeAye, chromium...@chromium.org, mdjone...@chromium.org, yuezhang...@chromium.org, ayman...@chromium.org, feature-me...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org

Chromium LUCI CQ submitted the change

Change information

Commit message:
Delay price drop and product image acquisition on Tab Resumption

This arm introduces a new arm on the price drop variation of
Tab resumption which acquires the price drop and product image after
the card is rendered and updates the card (if applicable). This
is to reduce the overall latency of the card.
Bug: 450903479
Change-Id: I1b11230f21e82711e305615a02640072c3e61db8
Commit-Queue: David Maunder <dav...@chromium.org>
Reviewed-by: Chris Lu <thegre...@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1528446}
Files:
  • M components/commerce/core/commerce_feature_list.cc
  • M components/commerce/core/commerce_feature_list.h
  • M ios/chrome/browser/content_suggestions/ui_bundled/magic_stack/magic_stack_module_contents_factory.mm
  • M ios/chrome/browser/content_suggestions/ui_bundled/magic_stack/magic_stack_ranking_model.mm
  • M ios/chrome/browser/content_suggestions/ui_bundled/tab_resumption/BUILD.gn
  • A ios/chrome/browser/content_suggestions/ui_bundled/tab_resumption/tab_resumption_consumer.h
  • A ios/chrome/browser/content_suggestions/ui_bundled/tab_resumption/tab_resumption_consumer_source.h
  • M ios/chrome/browser/content_suggestions/ui_bundled/tab_resumption/tab_resumption_item.h
  • M ios/chrome/browser/content_suggestions/ui_bundled/tab_resumption/tab_resumption_item.mm
  • M ios/chrome/browser/content_suggestions/ui_bundled/tab_resumption/tab_resumption_mediator.mm
  • M ios/chrome/browser/content_suggestions/ui_bundled/tab_resumption/tab_resumption_view.h
  • M ios/chrome/browser/content_suggestions/ui_bundled/tab_resumption/tab_resumption_view.mm
  • M ios/chrome/browser/flags/about_flags.mm
Change size: M
Delta: 13 files changed, 184 insertions(+), 22 deletions(-)
Branch: refs/heads/main
Submit Requirements:
  • requirement satisfiedCode-Review: +1 by Chris Lu
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I1b11230f21e82711e305615a02640072c3e61db8
Gerrit-Change-Number: 7028739
Gerrit-PatchSet: 17
Gerrit-Owner: David Maunder <dav...@chromium.org>
Gerrit-Reviewer: Chris Lu <thegre...@chromium.org>
Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Reviewer: David Maunder <dav...@chromium.org>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages