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

Unified Diff: lib/filterValidation.js

Issue 29570614: Issue 5028 - Use browser namespace (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome/
Patch Set: Rebase Created Oct. 10, 2017, 6:28 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/filterComposer.js ('k') | lib/firefoxDataCleanup.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/filterValidation.js
===================================================================
--- a/lib/filterValidation.js
+++ b/lib/filterValidation.js
@@ -71,25 +71,25 @@
*/
toString()
{
let message;
if (this.reason)
message = Utils.getString(this.reason);
else
{
- message = chrome.i18n.getMessage(
+ message = browser.i18n.getMessage(
this.type.replace(/-/g, "_"),
"selector" in this ? "'" + this.selector + "'" : null
);
}
if (this.lineno)
{
- message = chrome.i18n.getMessage(
+ message = browser.i18n.getMessage(
"line", this.lineno.toLocaleString()
) + ": " + message;
}
return message;
}
};
function isValidCSSSelector(selector)
« no previous file with comments | « lib/filterComposer.js ('k') | lib/firefoxDataCleanup.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld