以编程方式刷新Chrome政策? [英] Refresh Chrome policies programmatically?
问题描述
我写了一个使用本地存储的Chrome扩展程序.
I wrote a Chrome extension, that uses local storage.
当我在浏览器中打开chrome://policy/
时,可以根据扩展程序的ID看到扩展程序的数据,但是,当我在注册表中手动更改值时,它不会自动更新.相反,我必须单击重新加载策略"按钮.
When I open chrome://policy/
in the browser I can see my extension's data according to the its ID, however, when I change the value manually in the registry it DOES NOT get updated automatically. Instead I have to click on the "Reload policies" button.
我的扩展程序使用此数据,必须进行更新. 如何从代码中刷新Chrome策略? (就像用户单击重新加载策略"按钮一样.)
My extension uses this data and has to be updated. How can I refresh chrome policies from my code? (As if the user would click on the "Reload policies" button.)
谢谢!
推荐答案
对于Windows,即使您只是在注册表中而不是通过GPO管理信息,您也可以通过以下方式强制将更新反映在Chrome中:>
For Windows, even if you're just managing the information in the registry and not via GPO, you force the updates to be reflected in Chrome with:
gpupdate /force
这篇关于以编程方式刷新Chrome政策?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!