From c7050a4e143fa9997a79602c866b671efc0ad8d6 Mon Sep 17 00:00:00 2001 From: "gavin%gavinsharp.com" Date: Sat, 2 Dec 2006 22:27:06 +0000 Subject: [PATCH] Bug 362286: nsIPrefBranchInternal is deprecated - use nsIPrefBranch2, patch by Shawn Wilsher :sdwilsh , r=db48x, sr=neil git-svn-id: svn://10.0.0.236/trunk@216345 18797224-902f-48f8-a5cc-f745e15eee43 --- .../resources/content/jsutil/system/PrefUtils.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mozilla/extensions/inspector/resources/content/jsutil/system/PrefUtils.js b/mozilla/extensions/inspector/resources/content/jsutil/system/PrefUtils.js index 375f5d12846..29127ecb55a 100644 --- a/mozilla/extensions/inspector/resources/content/jsutil/system/PrefUtils.js +++ b/mozilla/extensions/inspector/resources/content/jsutil/system/PrefUtils.js @@ -61,20 +61,20 @@ var PrefUtils = this.mPrefs = prefService.getBranch(null); }, - addObserver: function(aDomain, aFunction) + addObserver: function addObserver(aDomain, aFunction) { if (!this.mPrefs) this.init(); - var pbi = XPCU.QI(this.mPrefs, "nsIPrefBranchInternal"); + var pbi = XPCU.QI(this.mPrefs, "nsIPrefBranch2"); if (pbi) pbi.addObserver(aDomain, aFunction, false); }, - removeObserver: function(aDomain, aFunction) + removeObserver: function removeObserver(aDomain, aFunction) { if (!this.mPrefs) this.init(); - var pbi = XPCU.QI(this.mPrefs, "nsIPrefBranchInternal"); + var pbi = XPCU.QI(this.mPrefs, "nsIPrefBranch2"); if (pbi) pbi.removeObserver(aDomain, aFunction); },