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

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

Issue 339533002: setData() of DataTransfer has a void return type (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed unnecessary argument. Created 6 years, 6 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/clipboard/Clipboard.h ('k') | Source/core/clipboard/DataObject.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/clipboard/Clipboard.cpp
diff --git a/Source/core/clipboard/Clipboard.cpp b/Source/core/clipboard/Clipboard.cpp
index 137a2fed858603414f2f89941838295f99de4a4a..bea50e5a51f87f0201f543ef481267a50813bef7 100644
--- a/Source/core/clipboard/Clipboard.cpp
+++ b/Source/core/clipboard/Clipboard.cpp
@@ -175,12 +175,12 @@ String Clipboard::getData(const String& type) const
return convertURIListToURL(data);
}
-bool Clipboard::setData(const String& type, const String& data)
+void Clipboard::setData(const String& type, const String& data)
{
if (!canWriteData())
- return false;
+ return;
- return m_dataObject->setData(normalizeType(type), data);
+ m_dataObject->setData(normalizeType(type), data);
}
// extensions beyond IE's API
« no previous file with comments | « Source/core/clipboard/Clipboard.h ('k') | Source/core/clipboard/DataObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698