Index: components/variations/variations_seed_store.h |
diff --git a/components/variations/variations_seed_store.h b/components/variations/variations_seed_store.h |
index cc743d88cd29fdb5caa17e71b38d414d046fec49..e3ceeea170c664eb82d8b084812cb7569fb3a633 100644 |
--- a/components/variations/variations_seed_store.h |
+++ b/components/variations/variations_seed_store.h |
@@ -7,6 +7,7 @@ |
#include <string> |
+#include "base/callback.h" |
#include "base/compiler_specific.h" |
#include "base/gtest_prod_util.h" |
#include "base/time/time.h" |
@@ -75,6 +76,13 @@ class VariationsSeedStore { |
// Registers Local State prefs used by this class. |
static void RegisterPrefs(PrefRegistrySimple* registry); |
+#if defined(OS_ANDROID) |
+ void SetPullVariationsSeedCallback( |
+ const base::Callback<std::string(const std::string&)>& callback) { |
+ pull_variations_seed_pref_ = callback; |
+ } |
+#endif // OS_ANDROID |
+ |
protected: |
// Note: UMA histogram enum - don't re-order or remove entries. |
enum VerifySignatureResult { |
@@ -134,6 +142,8 @@ class VariationsSeedStore { |
// Keeps track of an invalid signature. |
std::string invalid_base64_signature_; |
+ base::Callback<std::string(const std::string&)> pull_variations_seed_pref_; |
+ |
DISALLOW_COPY_AND_ASSIGN(VariationsSeedStore); |
}; |