CEO Marissa Mayer came in four years ago promising to hire new people, introduce new products, and stem a slide in its share of the online advertising market. The people and products arrived, but most of Yahoo’s users showed up for products like email, search, and news first introduced nearly two decades ago. The deal caps months of talks with potential...