DescriptionDisable ExtensionPrefStore for local-state pref store
The local-state pref store shares preferences between all profiles on a computer. This CL prevents extensions to use the ExtensionPrefStore in the local-sate.
Reasoning:
The ExtensionPrefStore cannot be used for storing extension preferences in the local-state (shared among all profiles on a machine). In this context, there is no meaningful definition of a precedence order as the same extensions can be installed in different profiles. One extension instance could override the preferences of another instance. If the "winning preferences" (the ones with highest preference) are persisted and carried over between browser restarts, this could also make debugging very difficult: The browser behaves strangely even though no extensions are installed. Therefore, one needs to start the right profile in order to uninstall an extension and fix problems of in other profiles. For these reasons we (pamg, battre) decided to not support the ExtensionPrefStore for local-state.
Unit tests can only verify that the DCHECKs are triggered. I have implemented one such test but do not include it in this CL because DCHECK triggers a termination.
This is an extension of http://codereview.chromium.org/4438001/show
Contributed by battre@google.com
BUG=50726
TEST=none
Patch Set 1 #
Total comments: 24
Patch Set 2 : Addressed Review Comments #Patch Set 3 : This time without accidentally committing the merged CL #
Total comments: 6
Patch Set 4 : Addressed Pam's comments #
Messages
Total messages: 5 (0 generated)
|