使用Permission.remove()时无法读取属性

我想在我的网站中删除地理位置许可

https://developer.chrome.com/apps/permissions

 chrome.permissions.remove({
      permissions: ['geolocation'],
  }, function(removed) {
      if (removed) {
          // The permissions have been removed.
      } else {
          // The permissions have not been removed (e.g., you tried to remove
          // required permissions).
      }
  });

我得到这个错误

无法读取未定义的属性“删除”

My manifest.json:

{
  "manifest_version": 2,
  "name": "Permissions Example",
  "description": "Permissions Example",
  "version": "1.0",
  "permissions": [
    "tabs",
    "geolocation"
  ],
  "optional_permissions": [
    "history"
  ]
}

添加到项目:

<link href="manifest.json" rel="manifest">

我的错误在哪里?