win: Store state of RegisterOsUpdateHandlerWin in pref
os_update_handler.exe can't check the state of experiments, so
this CL propagates the state of the experiment in a pref that
os_update_handler.exe can read.
Bug: 328668317
Change-Id: I3f94092eff0b2b0487d87a6f046c5f9d0511487c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5692761
Commit-Queue: David Bienvenu <[email protected]>
Reviewed-by: Avi Drissman <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1327011}
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index 14ae89d..ddc8f0b 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -1816,6 +1816,12 @@
registry->RegisterBooleanPref(prefs::kOopPrintDriversAllowedByPolicy, true);
#endif
+#if BUILDFLAG(IS_WIN) && BUILDFLAG(GOOGLE_CHROME_BRANDING)
+ // TODO(b/328668317): Default pref should be set to true once this is
+ // launched.
+ registry->RegisterBooleanPref(prefs::kOsUpdateHandlerEnabled, false);
+#endif // BUILDFLAG(IS_WIN) && BUILDFLAG(GOOGLE_CHROME_BRANDING)
+
#if BUILDFLAG(ENABLE_PDF)
registry->RegisterBooleanPref(prefs::kPdfViewerOutOfProcessIframeEnabled,
true);