| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 var contextInfo = requireNative('context_info'); | |
| 6 var sgb = requireNative('schema_generated_bindings'); | |
| 7 | |
| 8 require('miscellaneous_bindings'); | |
| 9 require('schema_generated_bindings'); | |
| 10 require('apitest'); | |
| 11 | |
| 12 // Load the custom bindings for each API. | |
| 13 sgb.GetExtensionAPIDefinition().forEach(function(apiDef) { | |
| 14 if (contextInfo.IsAPIAllowed(apiDef.namespace)) | |
| 15 require(apiDef.namespace); | |
| 16 }); | |
| OLD | NEW |