Several potato chip companies, including Frito-Lay, Heinz, Kettle Foods, and Lance Inc., have agreed to lower levels of acrylamide, a chemical that may cause cancer, in their products to settle a lawsuit filed by the state’s attorney general in 2005.