Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(417)

Unified Diff: components/payments/content/payment_request_state.cc

Issue 2876663002: [Web Payments] Add data attribution string to dialog (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/payments/content/payment_request_state.cc
diff --git a/components/payments/content/payment_request_state.cc b/components/payments/content/payment_request_state.cc
index dac01e502e008834766e507a7e9e6347f52ff3b6..935bcc553d5980192b91f97baa80af3fc9bd375d 100644
--- a/components/payments/content/payment_request_state.cc
+++ b/components/payments/content/payment_request_state.cc
@@ -88,6 +88,10 @@ bool PaymentRequestState::AreRequestedMethodsSupported() const {
return !spec_->supported_card_networks().empty();
}
+std::string PaymentRequestState::GetAuthenticatedEmail() const {
+ return payment_request_delegate_->GetAuthenticatedEmail();
+}
+
void PaymentRequestState::AddObserver(Observer* observer) {
CHECK(observer);
observers_.AddObserver(observer);
@@ -193,6 +197,10 @@ autofill::RegionDataLoader* PaymentRequestState::GetRegionDataLoader() {
return payment_request_delegate_->GetRegionDataLoader();
}
+content::BrowserContext* PaymentRequestState::GetBrowserContext() {
+ return payment_request_delegate_->GetBrowserContext();
+}
+
void PaymentRequestState::PopulateProfileCache() {
std::vector<autofill::AutofillProfile*> profiles =
personal_data_manager_->GetProfilesToSuggest();

Powered by Google App Engine
This is Rietveld 408576698