I.
FACTS AND PROCEEDINGS BELOW
An employee of the County of Mariposa (the County) in the State of California killed three persons in an automobile accident on March 5, 1983. Representatives of the deceased filed wrongful death actions against the County shortly afterward. The County, at the time, had insurance coverage for bodily injury or death arising out of a single accident under both a $100,000 primary insurance policy with Hartford and a $5,000,000 excess insurance policy with Transcontinental.
A disagreement arose over who should defend the suit. Although both insurance companies agreed that the County did not have to conduct the defense, they disagreed over which of them should do so. In a letter to Transcontinental, dated March 24, 1983, Hartford conceded liability to the full extent of its policy and asked Transcontinental to take over the case. Transcontinental declined, and Hartford defended the County until the plaintiffs settled in May, 1984, for four million dollars.
Hartford then filed this action to compel Transcontinental to reimburse it for $218,-784.42 that it spent on the litigation. Transcontinental counterclaimed for $78,-507.55 in expenses that it had incurred. Hartford later amended its complaint to allege that Transcontinental violated Cal. Ins.Code § 790.03(h)(5) (West Supp.1988). Transcontinental moved to dismiss the statutory claim on the ground that Hartford had no standing to sue under the section.
The district court entered summary judgment against Hartford on its first ground for relief and dismissed Hartford’s second ground for failure to state a claim.
II.
JURISDICTION
The district court had diversity jurisdiction under 28 U.S.C. § 1332(a)(1). This court has jurisdiction under 28 U.S.C. § 1291.
III.
STANDARD OF REVIEW
De novo review is proper for both a grant of summary judgment, see Ashton v. Cory, 780 F.2d 816, 818 (9th Cir.1986), and a dismissal for failure to state a claim, see Fort Vancouver Plywood Co. v. United States, 747 F.2d 547, 552 (9th Cir.1984).
IV.
REIMBURSEMENT
The Supreme Court of the State of California has established a framework for determining the obligations of an excess insurer, Transcontinental in this case, to a primary insurer, Hartford. That court has stated that the “ ‘rights and duties of several insurers who have covered the same event do not arise out of contract, for their agreements are not with each other.... Their respective obligations flow from equitable principles designed to accomplish ultimate justice in the bearing of a specific burden.’ ” Signal Cos. v. Harbor Ins. Co., 27 Cal.3d 359, 369, 612 P.2d 889, 895, 165 Cal.Rptr. 799, 805 (1980) (in bank) (quoting American Auto. Ins. Co. v. Seaboard Sur. Co., 155 Cal.App.2d 192, 195-96, 318 P.2d 84, 86 (1957)). The court has stated in particular that it would not impose a duty on an excess insurer in contravention of the provisions in its policy unless it found a “compelling equitable consideration” that required it to do so. Id.
The County’s insurance policies with Hartford and Transcontinental provided that Hartford’s duty to defend would cease, and Transcontinental’s duty to defend would begin, only when Hartford made a “payment” of its liability limit to Transcontinental. Hartford’s policy stated in part:
PART IV — LIABILITY INSURANCE A. WE WILL PAY.
• We will pay all sums the insured legally must pay as damages because of bodily injury or property damage to which the insurance applies, caused by an accident and resulting from the own