summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorncj674@motorola.com <ncj674@motorola.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-04 03:14:54 +0000
committerncj674@motorola.com <ncj674@motorola.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-04 03:14:54 +0000
commit3757776a93f410667f88f18534f07be663d0bfcf (patch)
treedb797ddf9fbf7e6844ce345524defd774abc406b /base
parent6bc04fd88b32683414c489b399ae716cb9b2b556 (diff)
downloadchromium_src-3757776a93f410667f88f18534f07be663d0bfcf.zip
chromium_src-3757776a93f410667f88f18534f07be663d0bfcf.tar.gz
chromium_src-3757776a93f410667f88f18534f07be663d0bfcf.tar.bz2
Strip invalid characters (line breaks, tabs), javascript:schemes from the copied text while pasting text, droping text and creating right click popup for omnibox.
BUG=82181, 103703 TEST=Copy a string with line breaks "\n" or tabs "\t". Then right click on omnibox. Chromium should not trigger DCHECKS. Review URL: http://codereview.chromium.org/8702002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112923 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r--base/utf_string_conversion_utils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/utf_string_conversion_utils.h b/base/utf_string_conversion_utils.h
index b100112..71dc527 100644
--- a/base/utf_string_conversion_utils.h
+++ b/base/utf_string_conversion_utils.h
@@ -67,7 +67,7 @@ BASE_EXPORT size_t WriteUnicodeCharacter(uint32 code_point,
// Appends the given code point as a UTF-16 character to the given 16-bit
// string. Returns the number of 16-bit values written.
-size_t WriteUnicodeCharacter(uint32 code_point, string16* output);
+BASE_EXPORT size_t WriteUnicodeCharacter(uint32 code_point, string16* output);
#if defined(WCHAR_T_IS_UTF32)
// Appends the given UTF-32 character to the given 32-bit string. Returns the