The chief executive of General Motors, an automaker synonymous with Detroit, saw the future of driving not in the Motor City but on the streets of San Francisco.
Mary T. Barra, a G.M. lifer who had worked her way from engineer to the top, was in the back seat of a prototype self-driving electric car as it wound its way through the city’s downtown a year ago.
She wanted to see for herself whether automation was ready to take over from a driver — safely, and on a mass scale. How would it react, for example, when it reached an intersection as