chrome.storage.sync не определено?

Я пытаюсь использовать Chrome Storage в расширении, используя content_script, но продолжаю терпеть неудачу на

Uncaught TypeError: Cannot read property 'sync' of undefined 

Это мой код:

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);
    });
}

Ответы на вопрос(4)

Ваш ответ на вопрос