The thing that is illegal is leveraging a monopoly position in one market to give yourself an advantage in another market.
So Google is allowed to favour their own price comparison in, say, Hangouts, but not in Search.