Flux pinning by thin chromium layers