General Motors CEO Mary Barra said the company has made moves to capitalize on the growing importance of electric vehicles.