Add a variant of set that takes ownership of EditTextObject.

Change-Id: If5f9122213d2f35aabcc66ca70c3d432120995cc