Index: chrome/renderer/autofill/password_autofill_manager.cc |
diff --git a/chrome/renderer/autofill/password_autofill_manager.cc b/chrome/renderer/autofill/password_autofill_manager.cc |
index 2bbee3121bde5d6dff73161c34f49d0fb0619b38..59e5b03a12ed963b37f788792b002a6ab96dd40a 100644 |
--- a/chrome/renderer/autofill/password_autofill_manager.cc |
+++ b/chrome/renderer/autofill/password_autofill_manager.cc |
@@ -10,6 +10,7 @@ |
#include "chrome/common/autofill_messages.h" |
#include "chrome/renderer/autofill/form_autofill_util.h" |
#include "content/public/renderer/render_view.h" |
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebAutofillClient.h" |
#include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" |
#include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h" |
#include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h" |
@@ -534,9 +535,9 @@ bool PasswordAutofillManager::ShowSuggestionPopup( |
std::vector<string16> labels(suggestions.size()); |
std::vector<string16> icons(suggestions.size()); |
- std::vector<int> ids(suggestions.size(), 0); |
+ std::vector<int> ids(suggestions.size(), WebKit::PasswordEntryMenuItemID); |
webview->applyAutofillSuggestions( |
- user_input, suggestions, labels, icons, ids, -1); |
+ user_input, suggestions, labels, icons, ids); |
return true; |
} |