In 1973, Longley became the first Chief of the Antitrust and Consumer Protection Division of the Texas Attorney General’s Office, where he also drafted the "Texas Consumer Protection Act" and "Deceptive Trade Practices Act".