SAN FRANCISCO — Uber chose Dara Khosrowshahi, who leads the online travel company Expedia, to be its chief executive on Sunday, two people with knowledge of the decision said. The selection capped a contentious search process as the ride-hailing company seeks to move past a turbulent period.
Mr. Khosrowshahi emerged as the leading candidate from a field of three finalists over a weekend of Uber board meetings, said the people, who spoke on the condition of anonymity because the details were confidential.
One finalist, Jeffrey R. Immelt, the former chief of General Electric, withdrew on Sunday when it became clear that he did not have enough support, said two people familiar with the process.
The board of directors and executives inside of Uber had instead been leaning toward Meg Whitman, the chief of Hewlett Packard Enterprise, the people said. But matters changed quickly over the course of Sunday afternoon, as directors and Ms. Whitman could not agree on terms in which she would take over as chief executive, the people said. Ultimately, the board decided on the third candidate, Mr. Khosrowshahi.
Uber, the company’s board and Expedia did not respond to requests for comment.
Choosing Mr. Khosrowshahi is crucial to returning stability to Uber, the world’s biggest ride-hailing company, which has been without a leader since its co-founder, Travis Kalanick, stepped down from the C.E.O. job under pressure on June 20. Under Mr. Kalanick, Uber changed the transportation landscape by offering people the ability to summon a ride through an app, and the privately held company swelled to a nearly $70 billion colossus.
But Uber’s future became murkier this year when the company was pummeled by scandal after scandal, including sexual harassment accusations in the workplace, a Department of Justice criminal investigation into some of its methods, and an intellectual property dispute with a self-driving car rival. While Uber’s business continued to grow, Mr. Kalanick’s management style faced scrutiny and investors mutinied against him.
How much of an impact Mr. Khosrowshahi can have on Uber is uncertain. The company still bears the imprint of Mr. Kalanick, who remains on Uber’s board. The board itself has been rived with discord, especially between Mr. Kalanick and Benchmark, a venture capital firm that is a major Uber shareholder and that also has a seat on Uber’s board. Both Mr. Kalanick and Benchmark had their own preferred candidates for a new chief. Benchmark also has sued Mr. Kalanick to try and force him off the board.
Mr. Khosrowshahi, who has been president and chief executive of Expedia since 2005, has experience in a digital industry that, like Uber, affects offline life and the logistics and movement of people. Based in Bellevue, Wash., Expedia has travel brands including Hotels.com and Orbitz. The publicly traded company is smaller than the privately held Uber, with a market capitalization of around $23 billion compared with Uber’s private valuation of nearly $70 billion.
Mr. Khosrowshahi also joined the board of The New York Times Company in 2015, and previously worked at IAC/InterActive Corp.
At Expedia, Mr. Khosrowshahi has been an outspoken chief executive. His family emigrated to the United States from Iran because of the revolution in that country in the late 1970s, so Mr. Khosrowshahi had a personal perspective on the executive order that President Trump signed restricting travel from seven predominantly Muslim countries this year.
Expedia, along with Amazon, became one of two technology companies to contribute early declarations to a lawsuit filed by Washington State’s attorney general objecting to the travel ban. Mr. Khosrowshahi described his early experience as an immigrant to the United States in an email to employees at that time.
“We sure didn’t feel like refugees, but in hindsight I guess we were — my father and mother left everything behind to come here — to be safe and give their boys a chance to re-build a life,” he wrote.
He expressed other pointed concerns in the wake of Mr. Trump’s coming to office. In February, he raised eyebrows when he concluded a conference call with Wall Street analysts by saying, “Hopefully we will all be alive to see the end of next year.”
At Uber, the chief executive search has been turbulent. Board members were split over candidates early on in the process. According to people with knowledge of the situation, Mr. Kalanick favored Mr. Immelt while Benchmark, whose partner Matt Cohler sits on Uber’s board, preferred Ms. Whitman.
A spokesman for Mr. Kalanick did not immediately respond to a request for comment. Benchmark declined to comment.
Last month, after Ms. Whitman emerged as a candidate for the job, she posted on Twitter that she was “fully committed to H.P.E. and plan to remain the company’s C.E.O.” She also gave an interview to The Wall Street Journal last week reiterating that there was “a lot of work to be done at H.P.E.”
But in reality, Ms. Whitman was in touch with members of Uber’s board in recent days about the chief executive role, said the people with knowledge of the process. Mr. Immelt, who recently left his job as chief executive of G.E., also had emerged as a candidate in recent weeks. Mr. Khosrowshahi’s candidacy was kept under wraps.
As recently as late last week, Uber’s board was deadlocked on candidates, the people said. On Friday, the board met in San Francisco, with Mr. Immelt and Mr. Khosrowshahi talking to the directors. Ms. Whitman spoke with directors on Friday and Saturday.
On Sunday morning, Mr. Immelt posted on Twitter that he had “decided not to pursue a leadership position at Uber.” By then, it was apparent that Mr. Immelt did not have the software experience that some board members deemed important for the Uber chief executive role, said people with knowledge of the process. Another person with knowledge of the situation said Mr. Immelt considered Uber’s board to be dysfunctional.
G.E. declined to comment on behalf of Mr. Immelt. A spokesman for Ms. Whitman also declined to comment.
At that point, the board was leaning toward Ms. Whitman, said two people with knowledge of the process. Ms. Whitman, who had previously also led eBay, had a wealth of management experience. As a female leader, she also offered the opportunity for Uber to improve its workplace image.
Ms. Whitman asked Uber’s board about some issues, including what role Mr. Kalanick would play in Uber’s future, the people said. Another point of discussion was the current legal battle over board control between Mr. Kalanick and Benchmark.
By late Sunday, Ms. Whitman and the board could not agree on some of those matters, the people said. Soon, Uber’s board had settled on Mr. Khosrowshahi.