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