DescriptionExpand the JsonPrefStore's interface to allow for an alternate filename to be specified.
The alternate filename is intended to be the old name of the pref file being read, JsonPrefStore handles the migration if required. JsonPrefStore's FileThreadDeserializer is the best place to do this as it's the only code in the prefs stack running on a thread allowed to do IO (another solution would be to let JsonPrefStore take a PreReadOnFileThreadCallback to abstract the required work away, but the direct approach seemed easier here without breaking encapsulation).
BUG=372547
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278776
Patch Set 1 #
Total comments: 11
Patch Set 2 : alphabetical order #Patch Set 3 : Dont even attempt to delete the alternate file in unexpected situations. #
Messages
Total messages: 12 (0 generated)
|