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

Delta Between Two Patch Sets: lib/main.js

Issue 8559070: Integrated URL Fixer into Adblock Plus (Closed)
Left Patch Set: First batch of changes Created Nov. 9, 2012, 1:04 p.m.
Right Patch Set: Created Nov. 9, 2012, 3:21 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « defaults/typoRules.json ('k') | lib/typoAppIntegration.js » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 /* 1 /*
2 * This Source Code is subject to the terms of the Mozilla Public License 2 * This Source Code is subject to the terms of the Mozilla Public License
3 * version 2.0 (the "License"). You can obtain a copy of the License at 3 * version 2.0 (the "License"). You can obtain a copy of the License at
4 * http://mozilla.org/MPL/2.0/. 4 * http://mozilla.org/MPL/2.0/.
5 */ 5 */
6 6
7 /** 7 /**
8 * @fileOverview Starts up Adblock Plus 8 * @fileOverview Starts up Adblock Plus
9 */ 9 */
10 10
11 Cu.import("resource://gre/modules/XPCOMUtils.jsm"); 11 Cu.import("resource://gre/modules/XPCOMUtils.jsm");
12 Cu.import("resource://gre/modules/Services.jsm"); 12 Cu.import("resource://gre/modules/Services.jsm");
13 13
14 let {Prefs} = require("prefs");
Wladimir Palant 2012/11/09 13:20:51 I think this should be added below so that its sta
15 let {TimeLine} = require("timeline"); 14 let {TimeLine} = require("timeline");
16 15
17 TimeLine.enter("Adblock Plus startup"); 16 TimeLine.enter("Adblock Plus startup");
17 let {Prefs} = require("prefs");
18 TimeLine.log("Done loading preferences");
18 registerPublicAPI(); 19 registerPublicAPI();
19 TimeLine.log("Done registering public API"); 20 TimeLine.log("Done registering public API");
20 require("filterListener"); 21 require("filterListener");
21 TimeLine.log("Done loading filter listener"); 22 TimeLine.log("Done loading filter listener");
22 require("contentPolicy"); 23 require("contentPolicy");
23 TimeLine.log("Done loading content policy"); 24 TimeLine.log("Done loading content policy");
24 require("synchronizer"); 25 require("synchronizer");
25 TimeLine.log("Done loading subscription synchronizer"); 26 TimeLine.log("Done loading subscription synchronizer");
26 require("sync"); 27 require("sync");
27 TimeLine.log("Done loading sync support"); 28 TimeLine.log("Done loading sync support");
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 71
71 let registrar = Components.manager.QueryInterface(Ci.nsIComponentRegistrar); 72 let registrar = Components.manager.QueryInterface(Ci.nsIComponentRegistrar);
72 registrar.registerFactory(classID, "Adblock Plus public API URL", contractID, factory); 73 registrar.registerFactory(classID, "Adblock Plus public API URL", contractID, factory);
73 74
74 onShutdown.add(function() 75 onShutdown.add(function()
75 { 76 {
76 registrar.unregisterFactory(classID, factory); 77 registrar.unregisterFactory(classID, factory);
77 Cu.unload(uri.spec); 78 Cu.unload(uri.spec);
78 }); 79 });
79 } 80 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld