Feinstein also served as an advisor to the congressionally mandated Task Force on the United Nations, chaired by former Speaker of the House Newt Gingrich and former Senate Majority Leader George J. Mitchell. From 2007 to 2008, Feinstein was national security director for the Clinton presidential campaign, and later served as a foreign policy advisor to the Barack Obama campaign. From 2008 to 2009, Feinstein served as a Visiting Senior Fellow at the Brookings Institution. From 2009 to 2012, Feinstein served as U.S. Ambassador to the Republic of Poland. He was confirmed by unanimous consent by the United States Senate.