Google isn’t just helping Samsung by providing witnesses to help the South Korean corporation defend against Apple’s patent claims in their second U.S. trial; the company will also pay a share of Samsung’s legal costs and will share damages in case Apple wins, Re/code reports. A Google lawyer on Tuesday took the stand during the trial, saying that Google agreed to take over the defense of some of Apple’s claims, and indemnify Samsung in case the company is found to have infringed on those particular patents. Initially, Google agreed to “provide partial or full indemnity with regard to four patents” and defend against them, Google lawyer James Maccoun revealed in a deposition preceding the trial when he verified an email exchange between Samsung