[ots] Add a compatibility wrapper for old API

To help with Chrome transition, should be removed after that.