Chromium Code Reviews| Index: chrome/browser/metrics/variations/variations_seed_store.h |
| =================================================================== |
| --- chrome/browser/metrics/variations/variations_seed_store.h (revision 265923) |
| +++ chrome/browser/metrics/variations/variations_seed_store.h (working copy) |
| @@ -33,10 +33,13 @@ |
| // Stores the given seed data (serialized protobuf data) to local state, along |
| // with a base64-encoded digital signature for seed and the date when it was |
| // fetched. The |seed_data| will be base64 encoded for storage. If the string |
| - // is invalid, the existing prefs are left as is and false is returned. |
| + // is invalid, the existing prefs are left as is and false is returned. On |
| + // success and if |parsed_seed| is not NULL, |parsed_seed| will be filled |
| + // with the de-serialized protobuf decoded from |seed_data|. |
|
jwd
2014/04/25 15:29:23
Can you add a sanity test that |seed_data| has the
Alexei Svitkine (slow)
2014/04/25 15:43:37
Done.
|
| bool StoreSeedData(const std::string& seed_data, |
| const std::string& base64_seed_signature, |
| - const base::Time& date_fetched); |
| + const base::Time& date_fetched, |
| + VariationsSeed* parsed_seed); |
| // Updates |kVariationsSeedDate| and logs when previous date was from a |
| // different day. |