diff options
author | wtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-28 21:06:51 +0000 |
---|---|---|
committer | wtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-28 21:06:51 +0000 |
commit | b1c4b7c58fb67ae83d51de7e740f52b11de7d6d6 (patch) | |
tree | f86d37d009ea1658a8feda28ab56b678fb872925 /webkit | |
parent | a6ba0d2c133825c97c935cc9e0bec04d2b27c4bb (diff) | |
download | chromium_src-b1c4b7c58fb67ae83d51de7e740f52b11de7d6d6.zip chromium_src-b1c4b7c58fb67ae83d51de7e740f52b11de7d6d6.tar.gz chromium_src-b1c4b7c58fb67ae83d51de7e740f52b11de7d6d6.tar.bz2 |
Fix a FORWARD_NULL defect reported by Coverity. We should
allow the src_url argument of Clipboard::ReadHTML and the
html and base_url arguments of ClipboardUtil::CFHtmlToHtml
to be NULL.
Fix nits reported by cpplint.py.
In Clipboard::SetGtkClipboard, use strdup to duplicate
strings.
R=tony
BUG=http://crbug.com/17101
TEST=none
Review URL: http://codereview.chromium.org/160247
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21888 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r-- | webkit/tools/test_shell/mock_webclipboard_impl.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/webkit/tools/test_shell/mock_webclipboard_impl.cc b/webkit/tools/test_shell/mock_webclipboard_impl.cc index 5f372f9..bca4aad 100644 --- a/webkit/tools/test_shell/mock_webclipboard_impl.cc +++ b/webkit/tools/test_shell/mock_webclipboard_impl.cc @@ -35,6 +35,7 @@ WebKit::WebString MockWebClipboardImpl::readPlainText() { return m_plainText; } +// TODO(wtc): set output argument *url. WebKit::WebString MockWebClipboardImpl::readHTML(WebKit::WebURL* url) { return m_htmlText; } |