[Pkg-mozext-commits] [perspectives-extension] 36/44: Pers_init - convert migration function to new wrapped pref interface

David Prévot taffit at moszumanska.debian.org
Sun Jun 26 04:59:21 UTC 2016


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository perspectives-extension.

commit 21fb91679d9bce13728d3cdd7866272aa5a988bd
Author: Dave Schaefer <dave.schaefer at gmail.com>
Date:   Tue Jun 14 22:39:32 2016 -0700

    Pers_init - convert migration function to new wrapped pref interface
---
 plugin/chrome/content/init.js | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/plugin/chrome/content/init.js b/plugin/chrome/content/init.js
index 1e5f4d5..f5d97a5 100644
--- a/plugin/chrome/content/init.js
+++ b/plugin/chrome/content/init.js
@@ -86,20 +86,20 @@ var Pers_init = {
       if (migration_needed){
           for (index = 0; index < preflist_numeric.length; ++index) {
             if (root_prefs.getPrefType(preflist_numeric[index]) !== root_prefs.PREF_INVALID){
-              tmpNum=root_prefs.getIntPref(preflist_numeric[index]);
-              root_prefs.setIntPref("extensions." + preflist_numeric[index],tmpNum);
+              tmpNum=Perspectives.getIntPref(preflist_numeric[index]);
+              Perspectives.setIntPref("extensions." + preflist_numeric[index],tmpNum);
             }
           }
           for(index = 0; index < preflist_string.length; ++index) {
             if(root_prefs.getPrefType(preflist_string[index]) !== root_prefs.PREF_INVALID){
-                tmpStr = root_prefs.getCharPref("" + preflist_string[index]);
-                root_prefs.setCharPref("extensions." + preflist_string[index],tmpStr);
+                tmpStr = Perspectives.getCharPref("" + preflist_string[index]);
+                Perspectives.setCharPref("extensions." + preflist_string[index],tmpStr);
             }
           }
           for(index = 0; index < preflist_bool.length; ++index) {
             if(root_prefs.getPrefType(preflist_bool[index]) !== root_prefs.PREF_INVALID){
-                tmpBool = root_prefs.getBoolPref("" + preflist_bool[index]);
-                root_prefs.setBoolPref("extensions." + preflist_bool[index],tmpBool);
+                tmpBool = Perspectives.getBoolPref("" + preflist_bool[index]);
+                Perspectives.setBoolPref("extensions." + preflist_bool[index],tmpBool);
             }
           }
           Perspectives.setBoolPref("extensions.perspectives.preference_migration",false);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/perspectives-extension.git



More information about the Pkg-mozext-commits mailing list