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

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

Issue 17970003: New encryption/escrow endpoints for Wallet (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebasing again... Created 7 years, 5 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/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 6c91ea1ac2cf15e0f75b175fd3b305d3ff059d18..b706a7e340dbc460c5adf5b316ea6b4b038895a0 100644
--- a/components/autofill/content/browser/wallet/instrument.h
+++ b/components/autofill/content/browser/wallet/instrument.h
@@ -55,10 +55,6 @@ class Instrument {
scoped_ptr<base::DictionaryValue> ToDictionary() const;
- // Users of this class should call IsValid to check that the inputs provided
- // in the constructor were valid for use with Google Wallet.
- bool IsValid() const;
-
const base::string16& primary_account_number() const {
return primary_account_number_;
}
@@ -67,9 +63,11 @@ class Instrument {
}
int expiration_month() const { return expiration_month_; }
int expiration_year() const { return expiration_year_; }
- const Address& address() const { return *address_; }
+ const Address* address() const { return address_.get(); }
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_; }
+ void set_object_id(const std::string& object_id) { object_id_ = object_id; }
private:
void Init();
@@ -95,6 +93,9 @@ class Instrument {
// The last four digits of |primary_account_number_|.
base::string16 last_four_digits_;
+ // Externalized Online Wallet id for this instrument.
+ std::string object_id_;
+
DISALLOW_ASSIGN(Instrument);
};

Powered by Google App Engine
This is Rietveld 408576698