-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add bridge for price tracking utils and use the new setter
This patch adds a bridge for java to use the price_tracking_utils in the commerce component and has existing code use the now-available SetPriceTrackingStateForBookmark. This allows for the removal of a large amount of existing code since the utility in components handles all the edge cases of setting the state in the bookmarks system and in subscriptions for free. The bridge lives in chrome/browser since we don't have a java BookmarkModel in components. Rather than passing each of the ShoppingService and BookmarkModel, the profile is passed and each is acquired in native through the respective factories. Most significantly, these changes switch the android implementation of price tracking to primarily use the native implementation of the subscriptions manager. Bug: 1351830, 1268976 Change-Id: I0291901ad19d1e06cf34d3aaeb768996da0b25b6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3978289 Reviewed-by: Zhiyuan Cai <zhiyuancai@chromium.org> Reviewed-by: Brandon Wylie <wylieb@chromium.org> Commit-Queue: Matthew Jones <mdjones@chromium.org> Reviewed-by: David Trainor <dtrainor@chromium.org> Cr-Commit-Position: refs/heads/main@{#1067535}
- Loading branch information
Showing
12 changed files
with
156 additions
and
198 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
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
Oops, something went wrong.