简体   繁体   English

Chrome是从哪里下载同步扩展程序的?

[英]Where does Chrome download synced extensions from?

Say I was to sign into a new user on Chrome and had extensions from a previous computer synced to my account. 假设我要在Chrome上登录新用户,并且以前的计算机中的扩展程序已同步到我的帐户。 Where are these extensions downloaded from after I sign? 我签名后从哪里下载这些扩展程序? I thought maybe update_url in manifest.json but I'm not sure. 我以为也许update_url中的update_url ,但是我不确定。

Let's examine an actual sync payload through chrome://sync-internals/ 让我们通过chrome://sync-internals/检查实际的同步负载

"SPECIFICS": {
  "encrypted": true,
  "extension": {
    "disable_reasons": "0",
    "enabled": true,
    "id": "ijglncoabcgieiokjmgdogpefdblmnle",
    "incognito_enabled": false,
    "installed_by_custodian": false,
    "name": "Desktop Notifications for Stack Exchange",
    "remote_install": false,
    "update_url": "https://clients2.google.com/service/update2/crx",
    "version": "1.6.12"
  }
},

From this, Chrome does see the update_url , which it can query for the download URL according to auto-update protocol . 由此,Chrome确实看到了update_url ,它可以根据自动更新协议查询下载URL。 Note that the actual extension is not hosted at that URL, that URL merely contains instructions on where to download it from. 请注意,实际的扩展名不是由该URL托管的,该URL仅包含有关从何处下载该扩展名的说明。 In this instance, the download will be from the Chrome Web Store. 在这种情况下,下载将从Chrome网上应用店下载。

It will also sync disabled status across instances: a disabled extension will still be downloaded, but will be disabled immediately. 它还将在实例之间同步禁用状态:禁用的扩展程序仍将下载,但将立即禁用。

Since non-enterprise versions can't install from anywhere but CWS, and non-CWS enterprise installs take their update_url s from policies and not Sync, I think the answer to your question is almost certainly "from CWS". 由于非企业版本只能在CWS之外的任何地方安装,而非CWS企业安装则从策略而不是从Sync获取它们的update_url ,因此我认为,您的问题的答案几乎肯定是“来自CWS”。 Can't test it though. 虽然无法测试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM