The district court erred in not awarding Apple its attorney fees under the indemnity provision of its app developer agreement. The indemnity clause expressly required indemnity of loss and expense due to the developer’s breach of an obligation or warranty, showing that the clause was intended to cover litigation between the contracting parties as well as third party claims.