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

Unified Diff: chrome/renderer/autofill/password_autofill_manager.cc

Issue 10024059: DataList UI (Chromium part) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed nits and tests Created 8 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
« no previous file with comments | « chrome/renderer/autofill/autofill_browsertest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..e371dc31ef4b0c51ee1833312933456194740483 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,10 @@ 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::WebAutofillClient::MenuItemIDPasswordEntry);
webview->applyAutofillSuggestions(
- user_input, suggestions, labels, icons, ids, -1);
+ user_input, suggestions, labels, icons, ids);
return true;
}
« no previous file with comments | « chrome/renderer/autofill/autofill_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698