Bug 592653 - script-generated patch to replace gPrefService with Services.prefs, r=Standard8.

This commit is contained in:
Florian Quèze
2017-12-19 23:45:10 +01:00
parent f1150a28b1
commit 3f662053f3
43 changed files with 209 additions and 209 deletions

View File

@@ -433,7 +433,7 @@ var gGestureSupport = {
getFunc = "Bool";
else if (type == "number")
getFunc = "Int";
return gPrefService["get" + getFunc + "Pref"](branch + aPref);
return Services.prefs["get" + getFunc + "Pref"](branch + aPref);
} catch (e) {
return aDef;
}
@@ -1014,7 +1014,7 @@ var gHistorySwipeAnimation = {
* This limit is a global limit and is valid across all open tabs.
*/
_getMaxSnapshots: function HSA__getMaxSnapshots() {
return gPrefService.getIntPref("browser.snapshots.limit");
return Services.prefs.getIntPref("browser.snapshots.limit");
},
/**