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..feada28bc1bc0c73a169b6ba07763c8ab9319805 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,14 @@ class VariationsSeedStore { |
// Registers Local State prefs used by this class. |
static void RegisterPrefs(PrefRegistrySimple* registry); |
+#if defined(OS_ANDROID) |
+ void SetVariationsFirstRunSeedCallback( |
+ const base::Callback<void(std::string*, std::string*, std::string*)>& |
+ callback) { |
Bernhard Bauer
2015/11/03 09:44:49
`git cl format`. Also, the fact that you have to b
Alexander Agulenko
2015/11/04 08:00:59
Done.
|
+ get_variations_first_run_seed_ = callback; |
+ } |
+#endif // OS_ANDROID |
+ |
protected: |
// Note: UMA histogram enum - don't re-order or remove entries. |
enum VerifySignatureResult { |
@@ -103,6 +112,12 @@ class VariationsSeedStore { |
// Clears all prefs related to variations seed storage. |
void ClearPrefs(); |
+#if defined(OS_ANDROID) |
+ // Imports the variations seed data from Java side during the first |
+ // Chrome for Android run. |
+ void ImportFirstRunJavaSeed(); |
+#endif // OS_ANDROID |
+ |
// Reads the variations seed data from prefs; returns true on success. |
bool ReadSeedData(std::string* seed_data); |
@@ -134,6 +149,11 @@ class VariationsSeedStore { |
// Keeps track of an invalid signature. |
std::string invalid_base64_signature_; |
+#if defined(OS_ANDROID) |
+ base::Callback<void(std::string*, std::string*, std::string*)> |
+ get_variations_first_run_seed_; |
Bernhard Bauer
2015/11/03 09:44:49
Indent.
Alexander Agulenko
2015/11/04 08:00:59
Done.
|
+#endif // OS_ANDROID |
+ |
DISALLOW_COPY_AND_ASSIGN(VariationsSeedStore); |
}; |