<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>196185</bug_id>
          
          <creation_ts>2019-03-24 01:58:33 -0700</creation_ts>
          <short_desc>[wpe] Build failure after r243325 (WebPasteboardProxyWPE.cpp)</short_desc>
          <delta_ts>2019-03-25 00:29:46 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WPE WebKit</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Pablo Saavedra">psaavedra</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>zan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1520682</commentid>
    <comment_count>0</comment_count>
    <who name="Pablo Saavedra">psaavedra</who>
    <bug_when>2019-03-24 01:58:33 -0700</bug_when>
    <thetext>Bots for WPE [1] stopped to build OK  after r243325 (Stop using LegacySync messages in WebPasteboardProxy - https://bugs.webkit.org/show_bug.cgi?id=196060).

[1] https://build.webkit.org/waterfall?category=WPE


Error:

In file included from /home/buildbot/wpe/wpe-linux-64-debug/build/WebKitBuild/Debug/DerivedSources/WebKit/unified-sources/UnifiedSource-88d1702b-26.cpp:1:0:
../../Source/WebKit/UIProcess/wpe/WebPasteboardProxyWPE.cpp: In member function ‘void WebKit::WebPasteboardProxy::getPasteboardTypes(WTF::CompletionHandler&lt;void(WTF::Vector&lt;WTF::String&gt;&amp;&amp;)&gt;&amp;&amp;)’:
../../Source/WebKit/UIProcess/wpe/WebPasteboardProxyWPE.cpp:39:47: error: no match for call to ‘(WTF::CompletionHandler&lt;void(WTF::Vector&lt;WTF::String&gt;&amp;&amp;)&gt;) (std::remove_reference&lt;WTF::Vector&lt;WTF::String&gt;&amp;&gt;::type)’
     completionHandler(WTFMove(pasteboardTypes));
                                               ^
In file included from /home/buildbot/wpe/wpe-linux-64-debug/build/WebKitBuild/Debug/DerivedSources/WebKit/unified-sources/UnifiedSource-88d1702b-26.cpp:1:0:
../../Source/WebKit/UIProcess/wpe/WebPasteboardProxyWPE.cpp: In member function ‘void WebKit::WebPasteboardProxy::readStringFromPasteboard(uint64_t, const WTF::String&amp;, WTF::CompletionHandler&lt;void(WTF::String&amp;&amp;)&gt;&amp;&amp;)’:
../../Source/WebKit/UIProcess/wpe/WebPasteboardProxyWPE.cpp:44:77: error: no match for call to ‘(WTF::CompletionHandler&lt;void(WTF::String&amp;&amp;)&gt;) (WTF::String)’
     completionHandler(PlatformPasteboard().readString(index, pasteboardType));




Related change done in r243325:

diff --git a/Source/WebKit/UIProcess/wpe/WebPasteboardProxyWPE.cpp b/Source/WebKit/UIProcess/wpe/WebPasteboardProxyWPE.cpp
index 0a8d44a65b8..1e84c7c4ddc 100644
--- a/Source/WebKit/UIProcess/wpe/WebPasteboardProxyWPE.cpp
+++ b/Source/WebKit/UIProcess/wpe/WebPasteboardProxyWPE.cpp
@@ -32,14 +32,16 @@
 namespace WebKit {
 using namespace WebCore;
 
-void WebPasteboardProxy::getPasteboardTypes(Vector&lt;String&gt;&amp; pasteboardTypes)
+void WebPasteboardProxy::getPasteboardTypes(CompletionHandler&lt;void(Vector&lt;String&gt;&amp;&amp;)&gt;&amp;&amp; completionHandler)
 {
+    Vector&lt;String&gt; pasteboardTypes;
     PlatformPasteboard().getTypes(pasteboardTypes);
+    completionHandler(WTFMove(pasteboardTypes));
 }
 
-void WebPasteboardProxy::readStringFromPasteboard(uint64_t index, const String&amp; pasteboardType, WTF::String&amp; value)
+void WebPasteboardProxy::readStringFromPasteboard(uint64_t index, const String&amp; pasteboardType, CompletionHandler&lt;void(String&amp;&amp;)&gt;&amp;&amp; completionHandler)
 {
-    value = PlatformPasteboard().readString(index, pasteboardType);
+    completionHandler(PlatformPasteboard().readString(index, pasteboardType));
 }
 
 void WebPasteboardProxy::writeWebContentToPasteboard(const WebCore::PasteboardWebContent&amp; content)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1520806</commentid>
    <comment_count>1</comment_count>
    <who name="Zan Dobersek">zan</who>
    <bug_when>2019-03-25 00:29:39 -0700</bug_when>
    <thetext>Fixed in r243431.
http://trac.webkit.org/changeset/243431/webkit</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>