Candidate Obama, June 2008, in front of AIPAC: “And Jerusalem will remain the capital of Israel, and it must remain undivided.”
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.” [I’ve edited slightly to clarify that the second quote is Obama administration policy, no doubt blessed by Obama, not a direct Obama quote like the first one.]