Changeset 151
- Timestamp:
- 2007-03-12 06:30:40 (2 years ago)
- Files:
-
- trunk/components/privacycontrol.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/components/privacycontrol.js
r86 r151 87 87 88 88 log : function(aMsg) { 89 if (this._logService instanceof Components.interfaces.nsIConsoleService) { 90 this._logService.logStringMessage('dta privacyontrol: ' + aMsg); 91 } 89 Components.utils.reportError('dta privacyControl: ' + aMsg); 92 90 }, 93 91 … … 130 128 .getService(Components.interfaces.nsIPrefService) 131 129 .getBranch('extensions.dta.'); 132 133 130 ['directory', 'filter', 'renaming'].forEach(function(e) { prefs.clearUserPref(e); }); 131 132 try { 133 var prof = Components.classes["@mozilla.org/file/directory_service;1"] 134 .getService(Components.interfaces.nsIProperties) 135 .get("ProfD", Components.interfaces.nsIFile); 136 ['dta_history.xml', 'dta_log.txt'].forEach( 137 function (e) { 138 try { 139 var file = prof.clone(); 140 file.append(e); 141 if (file.exists()) { 142 file.remove(); 143 } 144 } catch (ex) { 145 this.log('cannot remove ' + e); 146 } 147 } 148 ); 149 } 150 catch (oex) { 151 this.log('failed to clean files'); 152 } 134 153 }, 135 154
