`uri` can never be null here.