Coating made of chromium oxide or hydroxides