Index: chrome/browser/chrome_browser_main.cc |
=================================================================== |
--- chrome/browser/chrome_browser_main.cc (revision 181727) |
+++ chrome/browser/chrome_browser_main.cc (working copy) |
@@ -952,6 +952,19 @@ |
// command line. |
first_run::CreateSentinel(); |
} |
+ |
+ // Store the initial VariationsService seed in local state, if it exists in |
+ // master prefs. |
+ if (!master_prefs_->variations_seed.empty()) { |
gab
2013/02/11 23:44:01
See referenced comment above, this should probably
Alexei Svitkine (slow)
2013/02/12 00:11:31
Done. Can you explain the difference between the t
gab
2013/02/12 00:31:06
No difference in the real world; using |do_first_r
|
+ local_state_->SetString(prefs::kVariationsSeed, |
+ master_prefs_->variations_seed); |
+ // Set the variation seed date to the current system time. If the user's |
+ // clock is incorrect, this may cause some field trial expiry checks to |
+ // not do the right thing until the next seed update from the server, when |
+ // this value will be updated. |
+ local_state_->SetInt64(prefs::kVariationsSeedDate, |
+ base::Time::Now().ToInternalValue()); |
+ } |
} |
#endif |