Obama, the candidate (June 2008) : “And Jerusalem will remain the capital of Israel, and it must remain undivided.”
The Obama Administration (July 2009) : “The United States views East Jerusalem as no different than an illegal West Bank outpost with regard to its demand for a freeze on settlement construction.”
(Via: The Volokh Conspiracy )