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

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

Issue 2805263003: [Payments] Selecting incomplete items will open editors (Closed)
Patch Set: Initial Created 3 years, 8 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 0a1a487b5aaf6c6f85399733044507f0f384f124..4a2dc5a94e82aa8d1bf6538b91da184168d2c1d7 100644
--- a/components/payments/content/payment_request_state.cc
+++ b/components/payments/content/payment_request_state.cc
@@ -41,8 +41,7 @@ PaymentRequestState::~PaymentRequestState() {}
bool PaymentRequestState::CanMakePayment() const {
for (const std::unique_ptr<PaymentInstrument>& instrument :
available_instruments_) {
- if (instrument.get()->IsValid() &&
anthonyvd 2017/04/07 20:08:09 Is this just that the PR spec doesn't require the
Mathieu 2017/04/09 00:35:45 You're right this was unclear. I've rearranged so
- spec_->supported_card_networks_set().count(
+ if (spec_->supported_card_networks_set().count(
instrument.get()->method_name())) {
return true;
}

Powered by Google App Engine
This is Rietveld 408576698