Merge glue code back to CopyPasteManager.
Fix non-unified build break.