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

Unified Diff: webkit/glue/webpasswordautocompletelistener_impl.cc

Issue 6633001: Convert autofill messages to use the new IPC macros (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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 | « webkit/glue/form_field.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webpasswordautocompletelistener_impl.cc
===================================================================
--- webkit/glue/webpasswordautocompletelistener_impl.cc (revision 77285)
+++ webkit/glue/webpasswordautocompletelistener_impl.cc (working copy)
@@ -110,10 +110,10 @@
string16 user_input16 = user_input;
// If enabled, set the password field to match the current username.
- if (data_.basic_data.fields[0].value() == user_input16) {
- if (password_delegate_->IsValidValue(data_.basic_data.fields[1].value())) {
+ if (data_.basic_data.fields[0].value == user_input16) {
+ if (password_delegate_->IsValidValue(data_.basic_data.fields[1].value)) {
// Preferred username/login is selected.
- password_delegate_->SetValue(data_.basic_data.fields[1].value());
+ password_delegate_->SetValue(data_.basic_data.fields[1].value);
password_delegate_->SetAutofilled(true);
}
} else if (data_.additional_logins.find(user_input16) !=
@@ -160,8 +160,8 @@
// to simplify lookup and save string conversions (see SetValue) on each
// successful call to OnInlineAutocompleteNeeded.
if (TryToMatch(user_input16,
- data_.basic_data.fields[0].value(),
- data_.basic_data.fields[1].value())) {
+ data_.basic_data.fields[0].value,
+ data_.basic_data.fields[1].value)) {
return;
}
@@ -209,8 +209,8 @@
void WebPasswordAutocompleteListenerImpl::GetSuggestions(
const string16& input, std::vector<string16>* suggestions) {
- if (StartsWith(data_.basic_data.fields[0].value(), input, false))
- suggestions->push_back(data_.basic_data.fields[0].value());
+ if (StartsWith(data_.basic_data.fields[0].value, input, false))
+ suggestions->push_back(data_.basic_data.fields[0].value);
for (PasswordFormFillData::LoginCollection::iterator it =
data_.additional_logins.begin();
« no previous file with comments | « webkit/glue/form_field.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698