[Pkg-mozext-commits] [compactheader] 183/441: Remove extra user agent string

David Prévot taffit at moszumanska.debian.org
Wed Mar 18 12:28:57 UTC 2015


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

taffit pushed a commit to branch master
in repository compactheader.

commit c2c868bbea45cc7053638d3db0966dcb4b8e2070
Author: joachim.herb <none at none>
Date:   Tue Sep 28 20:18:55 2010 +0000

    Remove extra user agent string
---
 chrome/CompactHeader/content/compactHeaderOverlay.js | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/chrome/CompactHeader/content/compactHeaderOverlay.js b/chrome/CompactHeader/content/compactHeaderOverlay.js
index d79b1cf..2799cb6 100644
--- a/chrome/CompactHeader/content/compactHeaderOverlay.js
+++ b/chrome/CompactHeader/content/compactHeaderOverlay.js
@@ -115,10 +115,6 @@ org.mozdev.compactHeader.pane = function() {
                                           .getService(Components.interfaces.nsIPrefService)
                                           .getBranch("extensions.CompactHeader.");
 
-  var extraPrefBranch = Components.classes["@mozilla.org/preferences-service;1"]
-                                           .getService(Components.interfaces.nsIPrefService)
-                                           .getBranch("general.useragent.extra.");
-
   var timerSwapBrowsers = Components.classes["@mozilla.org/timer;1"]
     .createInstance(Components.interfaces.nsITimer);
 
@@ -1032,12 +1028,10 @@ org.mozdev.compactHeader.pane = function() {
         if (cohe.firstrun){
           cohePrefBranch.setBoolPref("firstrun",false);
           cohePrefBranch.setCharPref("version",cohe.current);
-          extraPrefBranch.setCharPref("CompactHeader", "CompcatHeader/" + cohe.current);
         }
         //check for upgrade
         if (cohe.version!=cohe.current && !cohe.firstrun){
           cohePrefBranch.setCharPref("version",cohe.current);
-          extraPrefBranch.setCharPref("CompactHeader", "CompcatHeader/" + cohe.current);
         }
         gCurrentLogLevel = debugLevel;
         cohePrefBranch.setIntPref("debugLevel", gCurrentLogLevel);
@@ -1061,12 +1055,10 @@ org.mozdev.compactHeader.pane = function() {
             if (cohe.firstrun){
               cohePrefBranch.setBoolPref("firstrun",false);
               cohePrefBranch.setCharPref("version",cohe.current);
-              extraPrefBranch.setCharPref("CompactHeader", "CompcatHeader/" + cohe.current);
             }
             //check for upgrade
             if (cohe.version!=cohe.current && !cohe.firstrun){
               cohePrefBranch.setCharPref("version",cohe.current);
-              extraPrefBranch.setCharPref("CompactHeader", "CompcatHeader/" + cohe.current);
             }
           }
         }
@@ -1325,7 +1317,6 @@ org.mozdev.compactHeader.pane = function() {
         debugLog("uninstalling COHE 2");
         if (this._uninstall) {
           cohePrefBranch.deleteBranch("");
-          extraPrefBranch.deleteBranch("CompactHeader");
           org.mozdev.customizeHeaderToolbar.pane.CHTCleanupButtons();
         }
         this.unregister();

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



More information about the Pkg-mozext-commits mailing list