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

Unified Diff: chrome/browser/autofill/phone_number.h

Issue 6673079: Reduce boxing and unboxing of AutofillFieldType (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 9 years, 9 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
« no previous file with comments | « chrome/browser/autofill/personal_data_manager_unittest.cc ('k') | chrome/browser/autofill/phone_number.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/phone_number.h
diff --git a/chrome/browser/autofill/phone_number.h b/chrome/browser/autofill/phone_number.h
index 3c08b9b91fe01777c6f83e49007d56fd3d65634d..6283f8556554db73227d8c81e9c16ac5ac030ab3 100644
--- a/chrome/browser/autofill/phone_number.h
+++ b/chrome/browser/autofill/phone_number.h
@@ -10,6 +10,7 @@
#include "base/gtest_prod_util.h"
#include "base/string16.h"
+#include "chrome/browser/autofill/autofill_type.h"
#include "chrome/browser/autofill/form_group.h"
// A form group that stores phone number information.
@@ -25,11 +26,11 @@ class PhoneNumber : public FormGroup {
virtual void GetPossibleFieldTypes(const string16& text,
FieldTypeSet* possible_types) const;
virtual void GetAvailableFieldTypes(FieldTypeSet* available_types) const;
- virtual void FindInfoMatches(const AutofillType& type,
+ virtual void FindInfoMatches(AutofillFieldType type,
const string16& info,
std::vector<string16>* matched_text) const;
- virtual string16 GetFieldText(const AutofillType& type) const;
- virtual void SetInfo(const AutofillType& type, const string16& value);
+ virtual string16 GetFieldText(AutofillFieldType type) const;
+ virtual void SetInfo(AutofillFieldType type, const string16& value);
// Parses |value| to extract the components of a phone number. |number|
// returns the trailing 7 digits, |city_code| returns the next 3 digits, and
« no previous file with comments | « chrome/browser/autofill/personal_data_manager_unittest.cc ('k') | chrome/browser/autofill/phone_number.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698