copy of https://github.com/rogerwang/chromium.src