summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autofill/autofill_field.h
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-03 01:57:07 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-03 01:57:07 +0000
commit877535175434bbf768234d10cd6df8085e707381 (patch)
tree0c08a136830a80ec63dbe6a3368cb88de4224781 /chrome/browser/autofill/autofill_field.h
parent1314544e05b07de2bfba8c91eff32fa127dca815 (diff)
downloadchromium_src-877535175434bbf768234d10cd6df8085e707381.zip
chromium_src-877535175434bbf768234d10cd6df8085e707381.tar.gz
chromium_src-877535175434bbf768234d10cd6df8085e707381.tar.bz2
Where possible, use return-by-const-ref for accessors in AutoFill data structures. In addition, I fixed the access levels of many of the modified methods.
BUG=31775 TEST=none Review URL: http://codereview.chromium.org/661421 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40477 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autofill/autofill_field.h')
-rw-r--r--chrome/browser/autofill/autofill_field.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/autofill/autofill_field.h b/chrome/browser/autofill/autofill_field.h
index 9ed87e2..2deb239 100644
--- a/chrome/browser/autofill/autofill_field.h
+++ b/chrome/browser/autofill/autofill_field.h
@@ -17,7 +17,7 @@ class AutoFillField : public webkit_glue::FormField {
AutoFillField(const webkit_glue::FormField& field,
const string16& unique_name);
- string16 unique_name() const { return unique_name_; }
+ const string16& unique_name() const { return unique_name_; }
AutoFillFieldType heuristic_type() const { return heuristic_type_; }
const FieldTypeSet& possible_types() const { return possible_types_; }