Fixes to work with current version of Chromium.

Hey buddy,

Thanks for a great example (and guide on the LH website).
I took up your challenge to fix it for the current version of Chromium. So, here's pull request. : )

// Hannes