Settings Split: Handle login screen mouse swap right policy

BUG: b/241965700
Change-Id: I91ef9864a1b598541b9e6fc23165ab02f9c586a2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4497172
Commit-Queue: David Padlipsky <[email protected]>
Reviewed-by: Michael Checo <[email protected]>
Reviewed-by: James Cook <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1139098}
diff --git a/ash/ash_prefs.cc b/ash/ash_prefs.cc
index 9f690b3..0e5dfc8 100644
--- a/ash/ash_prefs.cc
+++ b/ash/ash_prefs.cc
@@ -170,6 +170,10 @@
   else
     TopShortcutsView::RegisterLocalStatePrefs(registry);
   KeyboardBacklightColorController::RegisterPrefs(registry);
+
+  if (for_test) {
+    registry->RegisterBooleanPref(prefs::kOwnerPrimaryMouseButtonRight, false);
+  }
 }
 
 void RegisterSigninProfilePrefs(PrefRegistrySimple* registry, bool for_test) {