Google says it is committing $300 million over the next three years to help "strengthen quality journalism."