[Pkg-mozext-commits] [greasemonkey] 26/41: Remove unused tmp dir parameter from initInstallPolicy().
David Prévot
taffit at moszumanska.debian.org
Thu Apr 30 22:06:34 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository greasemonkey.
commit 4b044ca79e47b4ee126e2d5b6f2f9a2463dcec4e
Author: Anthony Lieuallen <arantius at gmail.com>
Date: Wed Apr 22 15:03:29 2015 -0400
Remove unused tmp dir parameter from initInstallPolicy().
---
content/framescript.js | 3 +--
modules/installPolicy.js | 8 +++-----
2 files changed, 4 insertions(+), 7 deletions(-)
diff --git a/content/framescript.js b/content/framescript.js
index 9501aa9..a52413f 100644
--- a/content/framescript.js
+++ b/content/framescript.js
@@ -291,7 +291,6 @@ addEventListener('unload', function() {
}, false);
(function() {
- var tmpDir = sendSyncMessage('greasemonkey:temp-dir-path');
- initInstallPolicy(tmpDir[0]);
+ initInstallPolicy();
initScriptProtocol();
})();
diff --git a/modules/installPolicy.js b/modules/installPolicy.js
index ce1cd4e..7698785 100644
--- a/modules/installPolicy.js
+++ b/modules/installPolicy.js
@@ -22,10 +22,10 @@ function ignoreNextScript() {
gIgnoreNextScript = true;
}
-function initInstallPolicy(aTmpPath) {
+function initInstallPolicy() {
if (gHaveDoneInit) return;
gHaveDoneInit = true;
- InstallPolicy.init(aTmpPath);
+ InstallPolicy.init();
}
////////////////////////////////////////////////////////////////////////////////
@@ -35,7 +35,7 @@ var InstallPolicy = {
_classID: Components.ID('c03c575c-e87e-4a0f-b88d-8be090116a0c'),
_contractID: '@greasemonkey.mozdev.org/greasemonkey-install-policy;1',
- init: function(aTmpPath) {
+ init: function() {
try {
var registrar = Components.manager.QueryInterface(Ci.nsIComponentRegistrar);
registrar.registerFactory(
@@ -53,8 +53,6 @@ var InstallPolicy = {
.getService(Ci.nsICategoryManager);
catMan.addCategoryEntry(
'content-policy', this._contractID, this._contractID, false, true);
-
- this._tmpPath = aTmpPath;
},
QueryInterface: XPCOMUtils.generateQI([
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/greasemonkey.git
More information about the Pkg-mozext-commits
mailing list