undefined chrome.storage.sync?

Próbuję użyć magazynu chrome w rozszerzeniu, za pomocą content_script, ale nie udaje mi się

Uncaught TypeError: Cannot read property 'sync' of undefined 

To jest mój kod:

testChromeStorage();

function testChromeStorage() {  
    console.log("Saving");
    chrome.storage.sync.set({'value': theValue}, function() {
        message('Settings saved');
    });
    chrome.storage.sync.get("value", function (retVal) {
            console.log("Got it? " + retVal.value);
    });
}

questionAnswers(4)

yourAnswerToTheQuestion