Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(269)

Unified Diff: tracing/tracing/base/extension_registry.html

Issue 2776653002: [ESLint] Fix violations when enabling curly rule in eslint. (Closed)
Patch Set: rebase Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tracing/tracing/base/event_target.html ('k') | tracing/tracing/base/extension_registry_base.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/base/extension_registry.html
diff --git a/tracing/tracing/base/extension_registry.html b/tracing/tracing/base/extension_registry.html
index ed878f794e0bc133641eed1a395de91056427cf2..c4afbb0137fe1153be9da15ad46bec7ba29ef8f4 100644
--- a/tracing/tracing/base/extension_registry.html
+++ b/tracing/tracing/base/extension_registry.html
@@ -40,8 +40,9 @@ found in the LICENSE file.
*/
tr.exportTo('tr.b', function() {
function decorateExtensionRegistry(registry, registryOptions) {
- if (registry.register)
+ if (registry.register) {
throw new Error('Already has registry');
+ }
registryOptions.freeze();
if (registryOptions.mode === tr.b.BASIC_REGISTRY_MODE) {
@@ -53,8 +54,9 @@ tr.exportTo('tr.b', function() {
}
// Make it an event target.
- if (registry.addEventListener === undefined)
+ if (registry.addEventListener === undefined) {
tr.b.EventTarget.decorate(registry);
+ }
}
return {
« no previous file with comments | « tracing/tracing/base/event_target.html ('k') | tracing/tracing/base/extension_registry_base.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698