Update a WL/WV test to not use a soon-to-be-deprecated FieldTrial.

Future changes will clean up the code for the client-configured
experiment.

Bug: 1241702
Change-Id: Ifcaa815ee2db2dc9c31fa7709d66ad318f09d83e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3707794
Reviewed-by: Ilya Sherman <isherman@chromium.org>
Auto-Submit: Caitlin Fischer <caitlinfischer@google.com>
Commit-Queue: Ilya Sherman <isherman@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1014742}
NOKEYCHECK=True
GitOrigin-RevId: 94a3fc0d63b57e25072bb5eee55cc9b190625b89
diff --git a/clean_exit_beacon.cc b/clean_exit_beacon.cc
index 100a3a4..7425212 100644
--- a/clean_exit_beacon.cc
+++ b/clean_exit_beacon.cc
@@ -425,6 +425,14 @@
                         base::Time::Now());
 }
 
+const base::FilePath CleanExitBeacon::GetUserDataDirForTesting() const {
+  return user_data_dir_;
+}
+
+base::FilePath CleanExitBeacon::GetBeaconFilePathForTesting() const {
+  return beacon_file_path_;
+}
+
 // static
 void CleanExitBeacon::RegisterPrefs(PrefRegistrySimple* registry) {
   registry->RegisterBooleanPref(prefs::kStabilityExitedCleanly, true);
diff --git a/clean_exit_beacon.h b/clean_exit_beacon.h
index e6bc161..05b33f5 100644
--- a/clean_exit_beacon.h
+++ b/clean_exit_beacon.h
@@ -108,6 +108,9 @@
   // Updates the last live timestamp.
   void UpdateLastLiveTimestamp();
 
+  const base::FilePath GetUserDataDirForTesting() const;
+  base::FilePath GetBeaconFilePathForTesting() const;
+
   // Registers local state prefs used by this class.
   static void RegisterPrefs(PrefRegistrySimple* registry);