chrome extension save data permanently code example
Example: chrome extension how to save data to an alternative file
chrome.storage.sync.set({'theKey': theValue}, optionalSuccessCallback);
chrome.storage.sync.set({'theKey': theValue}, optionalSuccessCallback);