Dan Ammann is helping chart General Motors Co.’s course. The company’s president for nearly four years, he spoke with Jamie Heller, The Wall Street Journal’s business editor, about the company’s strategy of developing the whole autonomous-car ecosystem and whether the new era will benefit auto makers. Here are edited excerpts of their conversation.