DescriptionFix AutocompleteMatch DCHECK() triggered by |RenderViewContextMenu::AppendSearchProvider()|.
Makes |AppendSearchProvider()| sanitize the text by replacing unwanted whitespace
characters with spaces. Do this instead of calling |AutocompleteMatch::SanitizeString()|,
since we want to preserve the whitespace between words separated by newlines here, rather
than appending such words together.
Added |ReplaceChars()| to base/string_util to support replacing any occurence of the
given characters with a replacement string.
BUG=103338
TEST=Right click on multiline text in a text area in a Debug build. A DCHECK() shouldn't trigger.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=109430
Patch Set 1 : '' #
Total comments: 7
Patch Set 2 : '' #
Total comments: 2
Patch Set 3 : '' #
Messages
Total messages: 15 (0 generated)
|