Commit 1f84a0b0 authored by dpapad's avatar dpapad Committed by Commit Bot

Settings: Fix a couple of ESLint violations.

Bug: 720034
Change-Id: Ibddd393abde847d06e3c82ab3c3d4be1d1d56526
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2478885
Auto-Submit: dpapad <dpapad@chromium.org>
Commit-Queue: Esmael Elmoslimany <aee@chromium.org>
Reviewed-by: default avatarEsmael Elmoslimany <aee@chromium.org>
Cr-Commit-Position: refs/heads/master@{#818124}
parent e4f7f9a1
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
error += ' in ' + this.getRootNode().host.tagName; error += ' in ' + this.getRootNode().host.tagName;
console.error(error); console.error(error);
} else if ( } else if (
this.pref.enforcement == this.pref.enforcement ===
chrome.settingsPrivate.Enforcement.PARENT_SUPERVISED) { chrome.settingsPrivate.Enforcement.PARENT_SUPERVISED) {
console.error('PARENT_SUPERVISED is not enforced by pref controls'); console.error('PARENT_SUPERVISED is not enforced by pref controls');
} }
......
...@@ -115,7 +115,7 @@ Polymer({ ...@@ -115,7 +115,7 @@ Polymer({
* @private * @private
*/ */
shouldAllowUrlsEdit_() { shouldAllowUrlsEdit_() {
return this.get('prefs.session.startup_urls.enforcement') != return this.get('prefs.session.startup_urls.enforcement') !==
chrome.settingsPrivate.Enforcement.ENFORCED; chrome.settingsPrivate.Enforcement.ENFORCED;
}, },
}); });
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment