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

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

Issue 6312174: Add a data-driven unit test to validate autofill profile merging during aggregation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename reserialization script Created 9 years, 10 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/autofill_merge_unittest.cc ('k') | chrome/browser/autofill/autofill_type.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/autofill_type.h
diff --git a/chrome/browser/autofill/autofill_type.h b/chrome/browser/autofill/autofill_type.h
index 5aac13445ae272368c4f86f26e9d0ab690630ca1..a7861af730f23780e165140ac374a58ef270034b 100644
--- a/chrome/browser/autofill/autofill_type.h
+++ b/chrome/browser/autofill/autofill_type.h
@@ -8,6 +8,7 @@
#include <map>
#include <set>
+#include <string>
#include "base/string16.h"
#include "chrome/browser/autofill/field_types.h"
@@ -63,6 +64,10 @@ class AutoFillType {
// the returned field type as the first parameter).
static AutoFillFieldType GetEquivalentFieldType(AutoFillFieldType field_type);
+ // Utilities for serializing and deserializing an |AutoFillFieldType|.
+ static std::string FieldTypeToString(AutoFillFieldType field_type);
+ static AutoFillFieldType StringToFieldType(const std::string& str);
+
private:
AutoFillFieldType field_type_;
};
« no previous file with comments | « chrome/browser/autofill/autofill_merge_unittest.cc ('k') | chrome/browser/autofill/autofill_type.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698