SAN FRANCISCO — Uber Technologies Inc. will pay up to $25 million to settle a lawsuit brought by the San Francisco and Los Angeles district attorneys’ offices over how it has touted safety measures. The agreement follows the settlement of a pair of class actions in February over the same practices. San Francisco District Attorney George Gascón said the deal affects more than Uber.

“It sends a clear message to all businesses, and to startups in particular, that in the quest to quickly obtain market share, laws designed to protect consumers cannot be ignored,” Gascón said in a statement. “If a business acts like it is above the law, it will pay a heavy price.”