Add support for experiments
This change refactors the options logic and adds support for
experiments: a new type of options which are not shown in the options
page (their usage will be similar to Chrome flags).
Experiments can be set from the
chrome-extension://{extension_id}/options/experiments.html page.
This code refactoring simplifies the options definition. Each option now
has a default value, and a context: the place where the option is set
(options, experiments, internal, deprecated).
Change-Id: I358ae07c832acae6b4536788c4dbe12a0e4730bf
diff --git a/src/background.js b/src/background.js
index d7aae23..8d0f411 100644
--- a/src/background.js
+++ b/src/background.js
@@ -4,7 +4,7 @@
chrome.runtime.onInstalled.addListener(function(details) {
if (details.reason == 'install' || details.reason == 'update') {
chrome.storage.sync.get(null, function(options) {
- cleanUpOptions(options);
+ cleanUpOptions(options, false);
});
}
});