I had the same problem with localStorage, and fixed it like this :
Under Settings > Privacy > Content settings, change the cookies’ settings to “Allow local data to be set” or the second option (in my case, it was previously on “Block sites from setting any data”).
Edit
On newer Chrome versions, make sure the first option is ticked here: chrome://settings/content/cookies