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

Unified Diff: lib/cssInjection.js

Issue 29705719: Issue 6402 - Split filter hit / request logging out into own API (Closed)
Patch Set: Addressed Manish's feedback Created May 9, 2018, 5:53 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 | « lib/csp.js ('k') | lib/devtools.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/cssInjection.js
diff --git a/lib/cssInjection.js b/lib/cssInjection.js
index bb899c050074c234ec620eff27916e36661e8d9f..77b743dce2aba228587e4eebccee21e5286f0baa 100644
--- a/lib/cssInjection.js
+++ b/lib/cssInjection.js
@@ -25,7 +25,7 @@ const {ElemHideEmulation} = require("../adblockpluscore/lib/elemHideEmulation");
const {checkWhitelisted} = require("./whitelisting");
const {extractHostFromFrame} = require("./url");
const {port} = require("./messaging");
-const devtools = require("./devtools");
+const {HitLogger} = require("./hitLogger");
const info = require("../buildtools/info");
// Chromium's support for tabs.removeCSS is still a work in progress and the
@@ -164,7 +164,7 @@ port.on("elemhide.getSelectors", (message, sender) =>
{
let selectors = [];
let emulatedPatterns = [];
- let trace = devtools.hasPanel(sender.page.id);
+ let trace = HitLogger.hasListener(sender.page.id);
let inline = !userStyleSheetsSupported;
if (!checkWhitelisted(sender.page, sender.frame, null,
« no previous file with comments | « lib/csp.js ('k') | lib/devtools.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld