diff options
author | dcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-11 00:09:17 +0000 |
---|---|---|
committer | dcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-11 00:09:17 +0000 |
commit | 9bf1100abb9a3c7acd7c6f265b1b113f1f49e4fd (patch) | |
tree | 46f49ab1622b88786654debc322a1e7fbb9e15f7 /webkit/tools | |
parent | cd7cb2e7cff0cf4af8c59c3f15f1e8f19e944c91 (diff) | |
download | chromium_src-9bf1100abb9a3c7acd7c6f265b1b113f1f49e4fd.zip chromium_src-9bf1100abb9a3c7acd7c6f265b1b113f1f49e4fd.tar.gz chromium_src-9bf1100abb9a3c7acd7c6f265b1b113f1f49e4fd.tar.bz2 |
Allow setting empty data for a MIME type in MockWebClipboardImpl.
BUG=34813
TEST=none
Review URL: http://codereview.chromium.org/9167028
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117121 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools')
-rw-r--r-- | webkit/tools/test_shell/mock_webclipboard_impl.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/webkit/tools/test_shell/mock_webclipboard_impl.cc b/webkit/tools/test_shell/mock_webclipboard_impl.cc index 934ebac..4f67c707 100644 --- a/webkit/tools/test_shell/mock_webclipboard_impl.cc +++ b/webkit/tools/test_shell/mock_webclipboard_impl.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -37,10 +37,10 @@ MockWebClipboardImpl::~MockWebClipboardImpl() { bool MockWebClipboardImpl::isFormatAvailable(Format format, Buffer buffer) { switch (format) { case FormatPlainText: - return !m_plainText.isEmpty(); + return !m_plainText.isNull(); case FormatHTML: - return !m_htmlText.isEmpty(); + return !m_htmlText.isNull(); case FormatSmartPaste: return m_writeSmartPaste; |