chore: remove scoped_clipboard_writer.patch (#15843)

replace with already-exposed APIs
This commit is contained in:
Jeremy Apthorp 2018-11-26 16:51:26 -08:00 committed by Cheng Zhao
parent 0a5f8611e8
commit 23de301955
3 changed files with 3 additions and 66 deletions

View file

@ -65,8 +65,9 @@ void Clipboard::WriteBuffer(const std::string& format,
}
ui::ScopedClipboardWriter writer(GetClipboardType(args));
writer.WriteData(node::Buffer::Data(buffer), node::Buffer::Length(buffer),
ui::Clipboard::GetFormatType(format));
writer.WriteData(
ui::Clipboard::GetFormatType(format).Serialize(),
std::string(node::Buffer::Data(buffer), node::Buffer::Length(buffer)));
}
void Clipboard::Write(const mate::Dictionary& data, mate::Arguments* args) {