| Index: third_party/WebKit/Source/core/clipboard/DataObject.cpp
|
| diff --git a/third_party/WebKit/Source/core/clipboard/DataObject.cpp b/third_party/WebKit/Source/core/clipboard/DataObject.cpp
|
| index 023c4a163beb0ea6c3ed72f51cd8986d3d3693af..b95399a4400df5e4e8147389a47f174a05c9a5e6 100644
|
| --- a/third_party/WebKit/Source/core/clipboard/DataObject.cpp
|
| +++ b/third_party/WebKit/Source/core/clipboard/DataObject.cpp
|
| @@ -62,6 +62,12 @@ DataObject* DataObject::createFromPasteboard(PasteMode pasteMode) {
|
| return dataObject;
|
| }
|
|
|
| +DataObject* DataObject::createFromString(const String& data) {
|
| + DataObject* dataObject = create();
|
| + dataObject->add(data, mimeTypeTextPlain);
|
| + return dataObject;
|
| +}
|
| +
|
| DataObject* DataObject::create() {
|
| return new DataObject;
|
| }
|
|
|