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

Unified Diff: chrome/browser/ui/autofill/autofill_dialog_i18n_input.h

Issue 145553009: rAc: use libaddressinput to validate international addresses. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 6 years, 11 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: chrome/browser/ui/autofill/autofill_dialog_i18n_input.h
diff --git a/chrome/browser/ui/autofill/autofill_dialog_i18n_input.h b/chrome/browser/ui/autofill/autofill_dialog_i18n_input.h
index 92e80ff74734a069ae8d28b427172c8960ff2fa1..a1580e8c036d8d32efbcdd430cd0568fdd405d33 100644
--- a/chrome/browser/ui/autofill/autofill_dialog_i18n_input.h
+++ b/chrome/browser/ui/autofill/autofill_dialog_i18n_input.h
@@ -7,6 +7,7 @@
#include "chrome/browser/ui/autofill/autofill_dialog_common.h"
#include "chrome/browser/ui/autofill/autofill_dialog_types.h"
+#include "third_party/libaddressinput/chromium/cpp/include/libaddressinput/address_field.h"
namespace autofill {
@@ -33,6 +34,10 @@ bool CardHasCompleteAndVerifiedData(const CreditCard& card);
// exact set of required fields depends on the region.
bool AddressHasCompleteAndVerifiedData(const AutofillProfile& profile);
+// Returns the corresponding Autofill server type for |field|.
+ServerFieldType TypeForField(::i18n::addressinput::AddressField field,
+ common::AddressType address_type);
+
} // namespace i18ninput
} // namespace autofill

Powered by Google App Engine
This is Rietveld 408576698