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

Unified Diff: Source/core/clipboard/DataObject.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/DataObject.h ('k') | Source/core/clipboard/DataTransfer.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/clipboard/DataObject.cpp
diff --git a/Source/core/clipboard/DataObject.cpp b/Source/core/clipboard/DataObject.cpp
index 671af3d4e627cfc13ec626139551c90a8b6c8cd8..d51b9071d4eee8aeb665b1ebfa3c298361b1892a 100644
--- a/Source/core/clipboard/DataObject.cpp
+++ b/Source/core/clipboard/DataObject.cpp
@@ -152,12 +152,11 @@ String DataObject::getData(const String& type) const
return String();
}
-bool DataObject::setData(const String& type, const String& data)
+void DataObject::setData(const String& type, const String& data)
{
clearData(type);
if (!add(data, type))
ASSERT_NOT_REACHED();
- return true;
}
void DataObject::urlAndTitle(String& url, String* title) const
« no previous file with comments | « Source/core/clipboard/DataObject.h ('k') | Source/core/clipboard/DataTransfer.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698