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

Unified Diff: components/autofill/core/browser/autofill_data_util.h

Issue 1868003003: Preserving first/middle/last names when an Autofill profile is submitted (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing stevenjb nits Created 4 years, 8 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: components/autofill/core/browser/autofill_data_util.h
diff --git a/components/autofill/core/browser/autofill_data_util.h b/components/autofill/core/browser/autofill_data_util.h
index 1cba1b3e78a147c7ad30c9b5cc27ba6dc6131b19..1c1e1353af35a9f58431b803d10dd1fbc49d5753 100644
--- a/components/autofill/core/browser/autofill_data_util.h
+++ b/components/autofill/core/browser/autofill_data_util.h
@@ -6,6 +6,7 @@
#define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_DATA_UTIL_H_
#include "base/strings/string16.h"
+#include "components/autofill/core/browser/autofill_profile.h"
namespace autofill {
namespace data_util {
@@ -22,6 +23,11 @@ struct NameParts {
// |name| passed as a parameter.
NameParts SplitName(const base::string16& name);
+// Returns true iff |full_name| is a concatenation of some combination of the
+// first/middle/last (incl. middle initial) in |profile|.
+bool ProfileMatchesFullName(const base::string16 full_name,
+ const autofill::AutofillProfile& profile);
+
} // namespace data_util
} // namespace autofill
« no previous file with comments | « chrome/browser/ui/webui/options/autofill_options_handler.cc ('k') | components/autofill/core/browser/autofill_data_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698