In 1866 ( now called Viscount Cranborne ) , he served as Secretary of State for India under Prime Minister Lord Derby . In 1866 Lord Robert , now Viscount Cranborne after the death of his older brother , Cranborne entered the third government of Lord Derby as Secretary of State for India .