summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordhollowa@chromium.org <dhollowa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-01 17:44:06 +0000
committerdhollowa@chromium.org <dhollowa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-01 17:44:06 +0000
commit375d22fb0a806a85ea9811d8387439fd48459c49 (patch)
tree8ab5be90f9149415609b0f78438b7d34a885346a
parent7469188609cb06b487f04139bfc6cbc7504ca3e4 (diff)
downloadchromium_src-375d22fb0a806a85ea9811d8387439fd48459c49.zip
chromium_src-375d22fb0a806a85ea9811d8387439fd48459c49.tar.gz
chromium_src-375d22fb0a806a85ea9811d8387439fd48459c49.tar.bz2
Autofill API cleanup of deprecated methods
This converts the password manager to use the non-deprecated Autofill method on the WebKit side for showing the suggestions popup menu. BUG=none TEST=PasswordAutocompleteManagerTest.*, and manual steps of triggering password autofill popup menu. Review URL: http://codereview.chromium.org/5337011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67866 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/renderer/password_autocomplete_manager.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/renderer/password_autocomplete_manager.cc b/chrome/renderer/password_autocomplete_manager.cc
index 284f12f..78512fa 100644
--- a/chrome/renderer/password_autocomplete_manager.cc
+++ b/chrome/renderer/password_autocomplete_manager.cc
@@ -422,7 +422,11 @@ bool PasswordAutocompleteManager::ShowSuggestionPopup(
if (!webview)
return false;
- webview->applyAutocompleteSuggestions(user_input, suggestions, -1);
+ std::vector<string16> labels(suggestions.size());
+ std::vector<string16> icons(suggestions.size());
+ std::vector<int> ids(suggestions.size(), 0);
+ webview->applyAutoFillSuggestions(user_input, suggestions, labels, icons, ids,
+ -1);
return true;
}