Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: chrome/content/common.js

Issue 10964120: Made Synchronizer tests work again (Closed)
Patch Set: Created July 12, 2013, 1:43 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/content/index.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 const Cc = Components.classes; 1 const Cc = Components.classes;
2 const Ci = Components.interfaces; 2 const Ci = Components.interfaces;
3 const Cr = Components.results; 3 const Cr = Components.results;
4 const Cu = Components.utils; 4 const Cu = Components.utils;
5 5
6 Cu.import("resource://gre/modules/XPCOMUtils.jsm");
6 Cu.import("resource://gre/modules/Services.jsm"); 7 Cu.import("resource://gre/modules/Services.jsm");
7 8
8 function require(module) 9 function require(module)
9 { 10 {
10 let result = {}; 11 let result = {};
11 result.wrappedJSObject = result; 12 result.wrappedJSObject = result;
12 Services.obs.notifyObservers(result, "adblockplus-require", module); 13 Services.obs.notifyObservers(result, "adblockplus-require", module);
13 return result.exports; 14 return result.exports;
14 } 15 }
15 16
(...skipping 18 matching lines...) Expand all
34 BlockingFilter, WhitelistFilter, ElemHideBase, ElemHideFilter, ElemHideExce ption} = require("filterClasses"); 35 BlockingFilter, WhitelistFilter, ElemHideBase, ElemHideFilter, ElemHideExce ption} = require("filterClasses");
35 let {Subscription, SpecialSubscription, RegularSubscription, 36 let {Subscription, SpecialSubscription, RegularSubscription,
36 ExternalSubscription, DownloadableSubscription} = require("subscriptionClas ses"); 37 ExternalSubscription, DownloadableSubscription} = require("subscriptionClas ses");
37 let {defaultMatcher, Matcher, CombinedMatcher} = require("matcher"); 38 let {defaultMatcher, Matcher, CombinedMatcher} = require("matcher");
38 let {FilterListener} = require("filterListener"); 39 let {FilterListener} = require("filterListener");
39 let {FilterNotifier} = require("filterNotifier"); 40 let {FilterNotifier} = require("filterNotifier");
40 let {FilterStorage} = require("filterStorage"); 41 let {FilterStorage} = require("filterStorage");
41 let {ElemHide} = require("elemHide"); 42 let {ElemHide} = require("elemHide");
42 let {Prefs} = require("prefs"); 43 let {Prefs} = require("prefs");
43 let {RequestNotifier} = require("requestNotifier"); 44 let {RequestNotifier} = require("requestNotifier");
45 let {Synchronizer} = require("synchronizer");
44 let {UI} = require("ui"); 46 let {UI} = require("ui");
45 let {Utils} = require("utils"); 47 let {Utils} = require("utils");
46 48
47 let geckoVersion = Services.appinfo.platformVersion; 49 let geckoVersion = Services.appinfo.platformVersion;
48 function compareGeckoVersion(version) 50 function compareGeckoVersion(version)
49 { 51 {
50 return Services.vc.compare(geckoVersion, version); 52 return Services.vc.compare(geckoVersion, version);
51 } 53 }
52 54
53 function prepareFilterComponents(keepListeners) 55 function prepareFilterComponents(keepListeners)
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 return oldFinish.apply(this, arguments); 246 return oldFinish.apply(this, arguments);
245 } 247 }
246 window.addEventListener("unload", function() 248 window.addEventListener("unload", function()
247 { 249 {
248 debuggerService.off(); 250 debuggerService.off();
249 }, true); 251 }, true);
250 debuggerService.on(); 252 debuggerService.on();
251 debuggerService.flags |= debuggerService.COLLECT_PROFILE_DATA; 253 debuggerService.flags |= debuggerService.COLLECT_PROFILE_DATA;
252 debuggerService.clearProfileData(); 254 debuggerService.clearProfileData();
253 } 255 }
OLDNEW
« no previous file with comments | « no previous file | chrome/content/index.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld