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

Unified Diff: components/autofill/content/renderer/autofill_agent.cc

Issue 183853011: Move TrimWhitespace to the base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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
Index: components/autofill/content/renderer/autofill_agent.cc
diff --git a/components/autofill/content/renderer/autofill_agent.cc b/components/autofill/content/renderer/autofill_agent.cc
index 16849bb439fc835c91e3c80b6769293d8077fcb1..f172bbc7ecfced10d4d9c66c65c8218b45f55859 100644
--- a/components/autofill/content/renderer/autofill_agent.cc
+++ b/components/autofill/content/renderer/autofill_agent.cc
@@ -77,8 +77,10 @@ void GetDataListSuggestions(const blink::WebInputElement& element,
element.formControlType() == WebString::fromUTF8("email")) {
std::vector<base::string16> parts;
base::SplitStringDontTrim(prefix, ',', &parts);
- if (parts.size() > 0)
- TrimWhitespace(parts[parts.size() - 1], TRIM_LEADING, &prefix);
+ if (parts.size() > 0) {
+ base::TrimWhitespace(parts[parts.size() - 1], base::TRIM_LEADING,
+ &prefix);
+ }
}
}
for (WebOptionElement option = options.firstItem().to<WebOptionElement>();

Powered by Google App Engine
This is Rietveld 408576698