summaryrefslogtreecommitdiffstats
path: root/WebKit/android/WebCoreSupport
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/android/WebCoreSupport')
-rw-r--r--WebKit/android/WebCoreSupport/autofill/WebAutoFill.cpp7
-rw-r--r--WebKit/android/WebCoreSupport/autofill/WebAutoFill.h6
2 files changed, 7 insertions, 6 deletions
diff --git a/WebKit/android/WebCoreSupport/autofill/WebAutoFill.cpp b/WebKit/android/WebCoreSupport/autofill/WebAutoFill.cpp
index 157a58a..ed42c7a 100644
--- a/WebKit/android/WebCoreSupport/autofill/WebAutoFill.cpp
+++ b/WebKit/android/WebCoreSupport/autofill/WebAutoFill.cpp
@@ -162,11 +162,12 @@ bool WebAutoFill::enabled() const
return page ? page->settings()->autoFillEnabled() : false;
}
-void WebAutoFill::setProfile(const string16& fullName, const string16& emailAddress, const string16& companyName, const string16& addressLine1,
- const string16& addressLine2, const string16& city, const string16& state, const string16& zipCode,
- const string16& country, const string16& phoneNumber)
+void WebAutoFill::setProfile(int id, const string16& fullName, const string16& emailAddress, const string16& companyName,
+ const string16& addressLine1, const string16& addressLine2, const string16& city,
+ const string16& state, const string16& zipCode, const string16& country, const string16& phoneNumber)
{
AutoFillProfile autoFillProfile;
+ autoFillProfile.set_unique_id(id);
// Constants for AutoFill field types are found in external/chromium/chrome/browser/autofill/field_types.h.
autoFillProfile.SetInfo(AutoFillType(NAME_FULL), fullName);
diff --git a/WebKit/android/WebCoreSupport/autofill/WebAutoFill.h b/WebKit/android/WebCoreSupport/autofill/WebAutoFill.h
index f5b2c68..46850e6 100644
--- a/WebKit/android/WebCoreSupport/autofill/WebAutoFill.h
+++ b/WebKit/android/WebCoreSupport/autofill/WebAutoFill.h
@@ -63,9 +63,9 @@ public:
void setWebViewCore(WebViewCore* webViewCore) { mWebViewCore = webViewCore; }
bool enabled() const;
- void setProfile(const string16& fullName, const string16& emailAddress, const string16& companyName, const string16& addressLine1,
- const string16& addressLine2, const string16& city, const string16& state, const string16& zipCode,
- const string16& country, const string16& phoneNumber);
+ void setProfile(int id, const string16& fullName, const string16& emailAddress, const string16& companyName,
+ const string16& addressLine1, const string16& addressLine2, const string16& city,
+ const string16& state, const string16& zipCode, const string16& country, const string16& phoneNumber);
private:
OwnPtr<FormManager> mFormManager;