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

Side by Side Diff: tracing/tracing/importer/importer.html

Issue 2776653002: [ESLint] Fix violations when enabling curly rule in eslint. (Closed)
Patch Set: rebase Created 3 years, 8 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 unified diff | Download patch
« no previous file with comments | « tracing/tracing/importer/import.html ('k') | tracing/tracing/importer/proto_expectation.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- 2 <!--
3 Copyright (c) 2013 The Chromium Authors. All rights reserved. 3 Copyright (c) 2013 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be 4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file. 5 found in the LICENSE file.
6 --> 6 -->
7 <link rel="import" href="/tracing/base/base.html"> 7 <link rel="import" href="/tracing/base/base.html">
8 <link rel="import" href="/tracing/base/extension_registry.html"> 8 <link rel="import" href="/tracing/base/extension_registry.html">
9 <script> 9 <script>
10 'use strict'; 10 'use strict';
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 66
67 var options = new tr.b.ExtensionRegistryOptions(tr.b.BASIC_REGISTRY_MODE); 67 var options = new tr.b.ExtensionRegistryOptions(tr.b.BASIC_REGISTRY_MODE);
68 options.defaultMetadata = {}; 68 options.defaultMetadata = {};
69 options.mandatoryBaseClass = Importer; 69 options.mandatoryBaseClass = Importer;
70 tr.b.decorateExtensionRegistry(Importer, options); 70 tr.b.decorateExtensionRegistry(Importer, options);
71 71
72 Importer.findImporterFor = function(eventData) { 72 Importer.findImporterFor = function(eventData) {
73 var typeInfo = Importer.findTypeInfoMatching(function(ti) { 73 var typeInfo = Importer.findTypeInfoMatching(function(ti) {
74 return ti.constructor.canImport(eventData); 74 return ti.constructor.canImport(eventData);
75 }); 75 });
76 if (typeInfo) 76 if (typeInfo) {
77 return typeInfo.constructor; 77 return typeInfo.constructor;
78 }
78 return undefined; 79 return undefined;
79 }; 80 };
80 81
81 return { 82 return {
82 Importer, 83 Importer,
83 }; 84 };
84 }); 85 });
85 </script> 86 </script>
OLDNEW
« no previous file with comments | « tracing/tracing/importer/import.html ('k') | tracing/tracing/importer/proto_expectation.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698