Mary T. Barra, chairwoman and chief executive of General Motors, last month in Shanghai. G.M. has made electric and autonomous cars an increasing focus of its strategy. Credit Aly Song/Reuters..

Mary T. Barra, chairwoman and chief executive of General Motors, last month in Shanghai. G.M. has made electric and autonomous cars an increasing focus of its strategy. Credit Aly Song/Reuters..