The replay official makes the determination. The referee has been given a monitor in recent years while they communicate with the replay official so the referee can better explain the call.
As to the length of the review - the replay official knows when TV is on break, which they did on this...