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

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

Issue 2934163002: Delete the logPrivate APIs (Closed)
Patch Set: Roll back docs changes Created 3 years, 6 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
OLDNEW
(Empty)
1 // Copyright 2014 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 // Custom binding for the logPrivate API.
6 var binding = require('binding').Binding.create('logPrivate');
7
8 var getFileBindingsForApi =
9 require('fileEntryBindingUtil').getFileBindingsForApi;
10 var fileBindings = getFileBindingsForApi('logPrivate');
11 var bindFileEntryCallback = fileBindings.bindFileEntryCallback;
12
13 binding.registerCustomHook(function(bindingsAPI) {
14 var apiFunctions = bindingsAPI.apiFunctions;
15
16 $Array.forEach(['dumpLogs'],
17 function(functionName) {
18 bindFileEntryCallback(functionName, apiFunctions);
19 });
20
21 });
22
23 exports.$set('bindFileEntryCallback', bindFileEntryCallback);
24 exports.$set('binding', binding.generate());
OLDNEW
« no previous file with comments | « chrome/renderer/extensions/chrome_extensions_dispatcher_delegate.cc ('k') | chrome/renderer/resources/renderer_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698