Technically true, but the company had a choice about how to return profits to investors and chose the buyback over the dividend, so the remaining owners don't get a larger percentage of profits unless the company also issues a dividend. It's generally an either-or these days.
Imagine an extreme case where McDonald's buys every single share but one. That remaining stock-owner will therefore own 100% of McDonald's, and get every last profit made from the world's obese.
Not all McD's stock is publicly traded. Moreover, a fair amount of McD's stock cannot be legally sold due to it being owned by ESOPs. That being said, the remaining stock owner would not own 100% of McDs, they would own 1 share of McDs (and 100% of then-outstanding stock). There would still be several million shares authorized and in reserve that could be sold or re-issued at a moment's notice. The decision to sell/re-issue those shares is made by the company, not the owner, and the fact that he theoretically owns 100% of the company at that time is meaningless because he owns only a fractional percent of the company's authorized shares and thus has no actual power.