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

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

Issue 11360055: [Autofill] Rename GetInfo and SetInfo to GetRawInfo and SetRawInfo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase harder Created 8 years, 1 month 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/credit_card_unittest.cc ('k') | chrome/browser/autofill/form_group.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/form_group.h
diff --git a/chrome/browser/autofill/form_group.h b/chrome/browser/autofill/form_group.h
index c4457109cb1d73b1d79f50e04da9a7a0c266ed4b..b250773b2aa46cade2e46b7758d7090ade5e6c49 100644
--- a/chrome/browser/autofill/form_group.h
+++ b/chrome/browser/autofill/form_group.h
@@ -28,11 +28,15 @@ class FormGroup {
// data. This method is additive on |non_empty_types|.
virtual void GetNonEmptyTypes(FieldTypeSet* non_empty_types) const;
- // Returns the literal string associated with |type|.
- virtual string16 GetInfo(AutofillFieldType type) const = 0;
-
- // Used to populate this FormGroup object with data.
- virtual void SetInfo(AutofillFieldType type, const string16& value) = 0;
+ // Returns the string associated with |type|, without canonicalizing the
+ // returned value. For user-visible strings, use GetCanonicalizedInfo()
+ // instead.
+ virtual string16 GetRawInfo(AutofillFieldType type) const = 0;
+
+ // Sets this FormGroup object's data for |type| to |value|, without
+ // canonicalizing the |value|. For data that has not already been
+ // canonicalized, use SetCanonicalizedInfo() instead.
+ virtual void SetRawInfo(AutofillFieldType type, const string16& value) = 0;
// Returns the string that should be auto-filled into a text field given the
// type of that field.
« no previous file with comments | « chrome/browser/autofill/credit_card_unittest.cc ('k') | chrome/browser/autofill/form_group.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698