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

Unified Diff: webkit/glue/autofill_form.cc

Issue 279001: Move autofill related WebView{Delegate} methods into the WebKit API.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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/autofill_form.h ('k') | webkit/glue/editor_client_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/autofill_form.cc
===================================================================
--- webkit/glue/autofill_form.cc (revision 29209)
+++ webkit/glue/autofill_form.cc (working copy)
@@ -57,12 +57,12 @@
continue;
// For each TEXT input field, store the name and value
- std::wstring value = StringToStdWString(input_element->value());
+ string16 value = StringToString16(input_element->value());
TrimWhitespace(value, TRIM_LEADING, &value);
if (value.length() == 0)
continue;
- std::wstring name = GetNameForInputElement(input_element);
+ string16 name = GetNameForInputElement(input_element);
if (name.length() == 0)
continue; // If we have no name, there is nothing to store.
@@ -73,20 +73,20 @@
}
// static
-std::wstring AutofillForm::GetNameForInputElement(WebCore::HTMLInputElement*
+string16 AutofillForm::GetNameForInputElement(WebCore::HTMLInputElement*
element) {
- std::wstring name = StringToStdWString(element->name());
- std::wstring trimmed_name;
+ string16 name = StringToString16(element->name());
+ string16 trimmed_name;
TrimWhitespace(name, TRIM_LEADING, &trimmed_name);
if (trimmed_name.length() > 0)
return trimmed_name;
- name = StringToStdWString(element->getAttribute(WebCore::HTMLNames::idAttr));
+ name = StringToString16(element->getAttribute(WebCore::HTMLNames::idAttr));
TrimWhitespace(name, TRIM_LEADING, &trimmed_name);
if (trimmed_name.length() > 0)
return trimmed_name;
- return std::wstring();
+ return string16();
}
} // namespace webkit_glue
« no previous file with comments | « webkit/glue/autofill_form.h ('k') | webkit/glue/editor_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698