Google knows it's got problems with diversity among its ranks, and it was one of the first in Silicon Valley to say so.