diff options
author | asvitkine <asvitkine@chromium.org> | 2015-02-11 17:23:11 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-02-12 01:23:38 +0000 |
commit | 5ea32c511b1544a9b9d82896656d6f92e7fafbdf (patch) | |
tree | 5522eff62bb1f4ade894437f4f5af219ea38a8e2 /chrome/installer | |
parent | 957b7b651c5fdd8ecfd31d010bde08bc9ac50b38 (diff) | |
download | chromium_src-5ea32c511b1544a9b9d82896656d6f92e7fafbdf.zip chromium_src-5ea32c511b1544a9b9d82896656d6f92e7fafbdf.tar.gz chromium_src-5ea32c511b1544a9b9d82896656d6f92e7fafbdf.tar.bz2 |
Compress variations_seed pref in Local State.
Compressed size is 0.22% of the original size, resulting
in much less space used in Local State.
Keeps code to fallback to reading the older pref around,
for a few releases, so that seeds don't get reset.
Also:
- Adds a histogram to track seed store results.
- Removes VLOGs which can now be debugged with
the above histogram.
- Deletes obsolete kVariationsSeedHash pref code.
BUG=457315
Review URL: https://codereview.chromium.org/903483003
Cr-Commit-Position: refs/heads/master@{#315899}
Diffstat (limited to 'chrome/installer')
-rw-r--r-- | chrome/installer/util/master_preferences.cc | 4 | ||||
-rw-r--r-- | chrome/installer/util/master_preferences.h | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/chrome/installer/util/master_preferences.cc b/chrome/installer/util/master_preferences.cc index 2c08b1f..bcb6b8b 100644 --- a/chrome/installer/util/master_preferences.cc +++ b/chrome/installer/util/master_preferences.cc @@ -292,6 +292,10 @@ bool MasterPreferences::GetExtensionsBlock( master_preferences::kExtensionsBlock, extensions); } +std::string MasterPreferences::GetCompressedVariationsSeed() const { + return ExtractPrefString(prefs::kVariationsCompressedSeed); +} + std::string MasterPreferences::GetVariationsSeed() const { return ExtractPrefString(prefs::kVariationsSeed); } diff --git a/chrome/installer/util/master_preferences.h b/chrome/installer/util/master_preferences.h index 9a7355e..2b8c914 100644 --- a/chrome/installer/util/master_preferences.h +++ b/chrome/installer/util/master_preferences.h @@ -156,6 +156,9 @@ class MasterPreferences { // bool GetExtensionsBlock(base::DictionaryValue** extensions) const; + // Returns the compressed variations seed entry from the master prefs. + std::string GetCompressedVariationsSeed() const; + // Returns the variations seed entry from the master prefs. std::string GetVariationsSeed() const; |