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

Unified Diff: components/autofill/content/browser/wallet/instrument.h

Issue 100743006: Fix DCHECK() when updating instruments with no phone number. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years 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/autofill/content/browser/wallet/instrument.h
diff --git a/components/autofill/content/browser/wallet/instrument.h b/components/autofill/content/browser/wallet/instrument.h
index b706a7e340dbc460c5adf5b316ea6b4b038895a0..c9b7ecd0cd3c8ae49d32f35879c665cba043a46c 100644
--- a/components/autofill/content/browser/wallet/instrument.h
+++ b/components/autofill/content/browser/wallet/instrument.h
@@ -6,6 +6,7 @@
#define COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_INSTRUMENT_H_
#include <string>
+
#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
#include "base/strings/string16.h"
@@ -67,7 +68,13 @@ class Instrument {
FormOfPayment form_of_payment() const { return form_of_payment_; }
const base::string16& last_four_digits() const { return last_four_digits_; }
const std::string& object_id() const { return object_id_; }
+ bool expiration_differs_from_server() const {
+ return expiration_differs_from_server_;
+ }
void set_object_id(const std::string& object_id) { object_id_ = object_id; }
+ void set_expiration_differs_from_server(bool expiration_differs_from_server) {
+ expiration_differs_from_server_ = expiration_differs_from_server;
+ }
private:
void Init();
@@ -96,6 +103,10 @@ class Instrument {
// Externalized Online Wallet id for this instrument.
std::string object_id_;
+ // Whether the expiration date differs from the server version of this
+ // instrument.
+ bool expiration_differs_from_server_;
+
DISALLOW_ASSIGN(Instrument);
};

Powered by Google App Engine
This is Rietveld 408576698