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

Unified Diff: lib/compat.js

Issue 29545651: Issue 5696 - Rename Components to ComponentsObject (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome/
Patch Set: Created Sept. 15, 2017, 2:09 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compat.js
===================================================================
--- a/lib/compat.js
+++ b/lib/compat.js
@@ -25,17 +25,17 @@
//
// XPCOM emulation
//
function nsIFileURL() {}
function nsIHttpChannel() {}
-let Components = {
+let ComponentsObject = {
interfaces:
{
nsIFile: {DIRECTORY_TYPE: 0},
nsIFileURL,
nsIHttpChannel,
nsITimer: {TYPE_REPEATING_SLACK: 0},
nsIInterfaceRequestor: null,
nsIChannelEventSink: null
@@ -68,20 +68,20 @@
{
console.error(e);
console.trace();
}
},
manager: null,
ID() { return null; }
};
-const Cc = Components.classes;
-const Ci = Components.interfaces;
-const Cr = Components.results;
-const Cu = Components.utils;
+const Cc = ComponentsObject.classes;
+const Ci = ComponentsObject.interfaces;
+const Cr = ComponentsObject.results;
+const Cu = ComponentsObject.utils;
Cu.import.resources = new Map();
Cu.import.resources.set("XPCOMUtils", {
generateQI() {}
});
//
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld