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

Side by Side Diff: chrome/renderer/resources/extensions/setup_bindings.js

Issue 9460002: Convert app_bindings.js to the schema_generated_bindings.js infrastructure. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reabse Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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');
6 var sgb = requireNative('schema_generated_bindings'); 5 var sgb = requireNative('schema_generated_bindings');
7 6
7 require('webstore');
8 require('json_schema');
9 require('event_bindings');
8 require('miscellaneous_bindings'); 10 require('miscellaneous_bindings');
9 require('schema_generated_bindings'); 11 require('schema_generated_bindings');
10 require('apitest'); 12 require('apitest');
11 13
12 // Load the custom bindings for each API. 14 // Load the custom bindings for each API.
13 sgb.GetExtensionAPIDefinition().forEach(function(apiDef) { 15 sgb.GetExtensionAPIDefinition().forEach(function(apiDef) {
14 if (contextInfo.IsAPIAllowed(apiDef.namespace)) 16 require(apiDef.namespace);
15 require(apiDef.namespace);
16 }); 17 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698