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

Unified Diff: components/autofill/core/browser/phone_number.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/phone_number.h
diff --git a/components/autofill/core/browser/phone_number.h b/components/autofill/core/browser/phone_number.h
index 17a0a248aa1430a6a08ececc1d8d2c3c51550a08..0b69b19bf4b469a9c567145710a9a18e8864b156 100644
--- a/components/autofill/core/browser/phone_number.h
+++ b/components/autofill/core/browser/phone_number.h
@@ -22,25 +22,23 @@ class PhoneNumber : public FormGroup {
public:
explicit PhoneNumber(AutofillProfile* profile);
PhoneNumber(const PhoneNumber& number);
- virtual ~PhoneNumber();
+ ~PhoneNumber() override;
PhoneNumber& operator=(const PhoneNumber& number);
void set_profile(AutofillProfile* profile) { profile_ = profile; }
// FormGroup implementation:
- 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;
// Size and offset of the prefix and suffix portions of phone numbers.
static const size_t kPrefixOffset = 0;
@@ -78,8 +76,7 @@ class PhoneNumber : public FormGroup {
private:
// FormGroup:
- virtual void GetSupportedTypes(
- ServerFieldTypeSet* supported_types) const override;
+ void GetSupportedTypes(ServerFieldTypeSet* supported_types) const override;
// Updates the cached parsed number if the profile's region has changed
// since the last time the cache was updated.
« no previous file with comments | « components/autofill/core/browser/phone_field.h ('k') | components/autofill/core/browser/test_autofill_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698