[Variations] Add a method to load the saved safe seed from prefs.

[email protected]

Bug: 727984
Change-Id: I9b6e1dd894ed6b8d3bf1d5277d2e40229a688f4b
Reviewed-on: https://chromium-review.googlesource.com/874618
Commit-Queue: Ilya Sherman <[email protected]>
Reviewed-by: Alexei Svitkine <[email protected]>
Cr-Commit-Position: refs/heads/master@{#530816}
diff --git a/components/variations/metrics.cc b/components/variations/metrics.cc
index a59d3d6..05cd56a 100644
--- a/components/variations/metrics.cc
+++ b/components/variations/metrics.cc
@@ -20,6 +20,11 @@
                             LoadSeedResult::ENUM_SIZE);
 }
 
+void RecordLoadSafeSeedResult(LoadSeedResult state) {
+  UMA_HISTOGRAM_ENUMERATION("Variations.SafeMode.LoadSafeSeed.Result", state,
+                            LoadSeedResult::ENUM_SIZE);
+}
+
 void RecordStoreSeedResult(StoreSeedResult result) {
   UMA_HISTOGRAM_ENUMERATION("Variations.SeedStoreResult", result,
                             StoreSeedResult::ENUM_SIZE);