Skip to content

Commit

Permalink
chore: remove scoped_clipboard_writer.patch (#15843)
Browse files Browse the repository at this point in the history
replace with already-exposed APIs
  • Loading branch information
nornagon authored and Cheng Zhao committed Nov 27, 2018
1 parent 0a5f861 commit 23de301
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 66 deletions.
5 changes: 3 additions & 2 deletions atom/common/api/atom_api_clipboard.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
1 change: 0 additions & 1 deletion patches/common/chromium/.patches
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ net_url_request_job.patch
out_of_process_instance.patch
render_widget_host_view_base.patch
render_widget_host_view_mac.patch
scoped_clipboard_writer.patch
stream_resource_handler.patch
thread_capabilities.patch
web_contents.patch
Expand Down
63 changes: 0 additions & 63 deletions patches/common/chromium/scoped_clipboard_writer.patch

This file was deleted.

0 comments on commit 23de301

Please sign in to comment.