chrome://flags Performance improvements

- Make the restart button appear quicker
- Optimisations to renderTemplate function so the template
is always duplicated.

Bug: 930758,928683
Change-Id: I98381313e32a202e14989f119ba571337b0b95fb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1466942
Reviewed-by: Tommy Li <tommycli@chromium.org>
Commit-Queue: Edward Jung <edwardjung@chromium.org>
Cr-Commit-Position: refs/heads/master@{#642469}
1 file changed