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

Side by Side Diff: lib/main.js

Issue 5056848617013248: Issue 1706 - Move first-run page to adblockplusui repository (Closed)
Patch Set: Export variables differently in common.js Created Jan. 7, 2015, 6:58 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 | « ext/content.js ('k') | metadata.gecko » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <http://adblockplus.org/>, 2 * This file is part of Adblock Plus <http://adblockplus.org/>,
3 * Copyright (C) 2006-2014 Eyeo GmbH 3 * Copyright (C) 2006-2014 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 10 matching lines...) Expand all
21 21
22 Cu.import("resource://gre/modules/XPCOMUtils.jsm"); 22 Cu.import("resource://gre/modules/XPCOMUtils.jsm");
23 Cu.import("resource://gre/modules/Services.jsm"); 23 Cu.import("resource://gre/modules/Services.jsm");
24 24
25 registerPublicAPI(); 25 registerPublicAPI();
26 require("filterListener"); 26 require("filterListener");
27 require("contentPolicy"); 27 require("contentPolicy");
28 require("synchronizer"); 28 require("synchronizer");
29 require("notification"); 29 require("notification");
30 require("sync"); 30 require("sync");
31 require("messageResponder");
31 require("ui"); 32 require("ui");
32 33
33 function registerPublicAPI() 34 function registerPublicAPI()
34 { 35 {
35 let {addonRoot} = require("info"); 36 let {addonRoot} = require("info");
36 37
37 let uri = Services.io.newURI(addonRoot + "lib/Public.jsm", null, null); 38 let uri = Services.io.newURI(addonRoot + "lib/Public.jsm", null, null);
38 if (uri instanceof Ci.nsIMutable) 39 if (uri instanceof Ci.nsIMutable)
39 uri.mutable = false; 40 uri.mutable = false;
40 41
(...skipping 12 matching lines...) Expand all
53 54
54 let registrar = Components.manager.QueryInterface(Ci.nsIComponentRegistrar); 55 let registrar = Components.manager.QueryInterface(Ci.nsIComponentRegistrar);
55 registrar.registerFactory(classID, "Adblock Plus public API URL", contractID, factory); 56 registrar.registerFactory(classID, "Adblock Plus public API URL", contractID, factory);
56 57
57 onShutdown.add(function() 58 onShutdown.add(function()
58 { 59 {
59 registrar.unregisterFactory(classID, factory); 60 registrar.unregisterFactory(classID, factory);
60 Cu.unload(uri.spec); 61 Cu.unload(uri.spec);
61 }); 62 });
62 } 63 }
OLDNEW
« no previous file with comments | « ext/content.js ('k') | metadata.gecko » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld