In chrome, if I go to chrome://flags/ and make a change on the flags page ( enable/disabe features ), a button appears at the bottom of the page which when clicked restarts chrome and re-opens the pages that were opened.
Does anyone know what javascript code allows that to happen ?
This is the html where the button appears
<div class="needs-restart" jsdisplay="needsRestart">
<div i18n-content="flagsRestartNotice">NEEDS_RESTART</div>
<button class="experiment-restart-button"
type="button"
i18n-content="flagsRestartButton">RESTART</button>
</div>
Thanks
A restartBrowser() function is called from the click of that button.
From flags.js:
Like the comment implies, it hooks into the C++ code behind Chrome, which will attempt a restart.