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

Unified Diff: Source/core/dom/Clipboard.cpp

Issue 26023003: Get rid of custom code for clipboard.clearData() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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
« no previous file with comments | « Source/core/dom/Clipboard.h ('k') | Source/core/dom/Clipboard.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Clipboard.cpp
diff --git a/Source/core/dom/Clipboard.cpp b/Source/core/dom/Clipboard.cpp
index 0217c3ee9a0f13ad900da4dfbf8bd01f506ec8bd..9e15c900636b922e489f3d15df62e87f171fa651 100644
--- a/Source/core/dom/Clipboard.cpp
+++ b/Source/core/dom/Clipboard.cpp
@@ -155,15 +155,10 @@ void Clipboard::clearData(const String& type)
if (!canWriteData())
return;
- m_dataObject->clearData(normalizeType(type));
-}
-
-void Clipboard::clearAllData()
-{
- if (!canWriteData())
- return;
-
- m_dataObject->clearAll();
+ if (type.isNull())
haraken 2013/10/04 22:41:22 To keep the current behavior, the if(type.isNull()
do-not-use 2013/10/08 14:24:42 Hmm, maybe I am misreading but I don't think so. T
+ m_dataObject->clearAll();
+ else
+ m_dataObject->clearData(normalizeType(type));
}
String Clipboard::getData(const String& type) const
« no previous file with comments | « Source/core/dom/Clipboard.h ('k') | Source/core/dom/Clipboard.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698