code: function restore_options() {
    // Use default value showChangeLog = true.
    chrome.storage.sync.get({
      showChangeLog: true
    }, function (items) {
      document.getElementById('show_changelog').checked = items.showChangeLog;
    });
  }
docs: Restores select box and checkbox state using the preferences stored in chrome.storage.