she served in the cabinet between 2008 and 2010 under prime minister gordon brown. she was chief secretary to the treasury and then secretary of state for work and pensions. after labour lost the 2010 general election, cooper was appointed shadow foreign secretary, then in 2011 shadow home secretary.