Commit 03abee0f authored by Side Yilmaz's avatar Side Yilmaz Committed by Commit Bot

Replace deprecated getLastUsedProfile function in PaymentRequestImpl.

|Profile#getLastUsedProfile| is deprecated and replaced with
|Profile#getLastUsedRegularProfile|. This CL updates PaymentRequestImpl
class.

Note: This change is only code clean-up, does not change any behavior.

Bug: 1041781
Change-Id: I799acc986566e41846fe0ea7d71c14990ae72bca
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2050373Reviewed-by: default avatarSahel Sharify <sahel@chromium.org>
Reviewed-by: default avatarRamin Halavati <rhalavati@chromium.org>
Commit-Queue: Side YILMAZ <sideyilmaz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#741398}
parent 85c33457
......@@ -904,8 +904,11 @@ public class PaymentRequestImpl
SecurityStateModel.getSecurityLevelForWebContents(mWebContents),
new ShippingStrings(mShippingType), mPaymentUisShowStateReconciler);
// TODO(https://crbug.com/1048632): Use the current profile (i.e., regular profile or
// incognito profile) instead of always using regular profile. It works correctly now, but
// it is not safe.
final FaviconHelper faviconHelper = new FaviconHelper();
faviconHelper.getLocalFaviconImageForURL(Profile.getLastUsedProfile(),
faviconHelper.getLocalFaviconImageForURL(Profile.getLastUsedRegularProfile(),
mWebContents.getLastCommittedUrl(),
activity.getResources().getDimensionPixelSize(R.dimen.payments_favicon_size),
(bitmap, iconUrl) -> {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment