Refactor: shifted cf_ptr to use std::unique_ptr
Refactor: shifted cf_ptr to use std::unique_ptr

PiperOrigin-RevId: 168282368
Change-Id: Ibb7be51fa7f0f4754e8d43810cc23ebbd662101c

google/flatui,google/flatui,google/flatui,google/flatui