[Payments]UkmSourceId() doesn't crash for JIT install PH in incognito.
This cl changes payments::ServiceWorkerPaymentApp::UkmSourceId() to use |installable_web_app_info_->sw_scope| for JIT installable PHs while calculating UkmSourceId. Without this change using |stored_payment_app_info_->scope| for JIT installable PHs would cause browser crash in incognito mode. Please note that explicitly returning InvalidUkmSourceId for incognito mode is not needed since UKM recorder does not record entries in incognito mode. Change-Id: I291d1404c89f5261e97d61ca8b74bbbfa905b229 Bug: 1066199 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2132944Reviewed-by:Danyao Wang <danyao@chromium.org> Commit-Queue: Sahel Sharify <sahel@chromium.org> Cr-Commit-Position: refs/heads/master@{#756008}
Showing
Please register or sign in to comment