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

Unified Diff: components/autofill/core/browser/credit_card.h

Issue 666133002: Standardize usage of virtual/override/final in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/core/browser/credit_card.h
diff --git a/components/autofill/core/browser/credit_card.h b/components/autofill/core/browser/credit_card.h
index 5e59aad573f24caaa6e18d5b3421419756b187be..1651d3eab806f050a6276ce53a43546e316bbfae 100644
--- a/components/autofill/core/browser/credit_card.h
+++ b/components/autofill/core/browser/credit_card.h
@@ -23,7 +23,7 @@ class CreditCard : public AutofillDataModel {
// For use in STL containers.
CreditCard();
CreditCard(const CreditCard& credit_card);
- virtual ~CreditCard();
+ ~CreditCard() override;
// Returns a version of |number| that has any separator characters removed.
static const base::string16 StripSeparators(const base::string16& number);
@@ -44,18 +44,16 @@ class CreditCard : public AutofillDataModel {
static const char* GetCreditCardType(const base::string16& number);
// FormGroup:
- virtual void GetMatchingTypes(
- const base::string16& text,
- const std::string& app_locale,
- ServerFieldTypeSet* matching_types) const override;
- virtual base::string16 GetRawInfo(ServerFieldType type) const override;
- virtual void SetRawInfo(ServerFieldType type,
- const base::string16& value) override;
- virtual base::string16 GetInfo(const AutofillType& type,
- const std::string& app_locale) const override;
- virtual bool SetInfo(const AutofillType& type,
- const base::string16& value,
- const std::string& app_locale) override;
+ void GetMatchingTypes(const base::string16& text,
+ const std::string& app_locale,
+ ServerFieldTypeSet* matching_types) const override;
+ base::string16 GetRawInfo(ServerFieldType type) const override;
+ void SetRawInfo(ServerFieldType type, const base::string16& value) override;
+ base::string16 GetInfo(const AutofillType& type,
+ const std::string& app_locale) const override;
+ bool SetInfo(const AutofillType& type,
+ const base::string16& value,
+ const std::string& app_locale) override;
// Credit card preview summary, for example: ******1234, Exp: 01/2020
const base::string16 Label() const;
@@ -114,8 +112,7 @@ class CreditCard : public AutofillDataModel {
private:
// FormGroup:
- virtual void GetSupportedTypes(
- ServerFieldTypeSet* supported_types) const override;
+ void GetSupportedTypes(ServerFieldTypeSet* supported_types) const override;
// The month and year are zero if not present.
int Expiration4DigitYear() const { return expiration_year_; }
« no previous file with comments | « components/autofill/core/browser/contact_info.h ('k') | components/autofill/core/browser/credit_card_field.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698