Policy UI: Set local test policies preference for restart browser
Set handler for restart browser button to set local test policies to the
kLocalTestPolicies preference. So local test policies can be set after
browser restart. Loading policies from the pref will be done in a
follow-up cl. Moved pref to local state to support loading policies to the BrowserPolicyConnector after restart.
Bug: b:290776197
Change-Id: Iafdfb462bcb18c77e8dfeecbd31e17ddbbfe7bf7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4678190
Reviewed-by: David Roger <[email protected]>
Reviewed-by: Yann Dago <[email protected]>
Commit-Queue: Jayee Zheng <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1177300}
diff --git a/chrome/browser/ui/webui/policy/policy_ui.cc b/chrome/browser/ui/webui/policy/policy_ui.cc
index 71696bf..9406248 100644
--- a/chrome/browser/ui/webui/policy/policy_ui.cc
+++ b/chrome/browser/ui/webui/policy/policy_ui.cc
@@ -179,7 +179,7 @@
// Localized strings for chrome://policy/test.
static constexpr webui::LocalizedString kPolicyTestStrings[] = {
{"testTitle", IDS_POLICY_TEST_TITLE},
- {"testRestart", IDS_POLICY_REBOOT_BUTTON},
+ {"testRestart", IDS_POLICY_TEST_RESTART_AND_APPLY},
{"testApply", IDS_POLICY_TEST_APPLY},
{"testImport", IDS_POLICY_TEST_IMPORT},
{"testDesc", IDS_POLICY_TEST_DESC},