Make autotestPrivate.setClipboardTextData synchronous
The ChromeOS clipboard used to be synchronously written within the browser process, but now it is asynchronously updated (see ui/base/clipboard/clipboard_ozone.cc for the details). Because of that, autotestPrivate.setClipboardTextData may return earlier than the clipboard data is actually set occasionally. To deal with such case, this CL introduces a clipboard observer to ensure that the clipboard is written. Bug: 1167256 Test: the new test cases Change-Id: I167be3aee090465e30951fbb7a9db688429059c2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2634121 Commit-Queue: Jun Mukai <mukai@chromium.org> Reviewed-by:Xiyuan Xia <xiyuan@chromium.org> Cr-Commit-Position: refs/heads/master@{#845060}
Showing
Please register or sign in to comment