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

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

Issue 9657026: Revert 125801 - Implement a module system for the extension bindings JS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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
(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('app');
9 require('webstore');
10
11 if (contextInfo.IsBindingsAllowed()) {
12 require('miscellaneous_bindings');
13 require('schema_generated_bindings');
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698