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

Side by Side Diff: extensions/renderer/resources/file_system_custom_bindings.js

Issue 2939833002: Move chrome.fileSystem interface and bindings to //extensions (Closed)
Patch Set: rebase Created 3 years, 5 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
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 // Custom binding for the fileSystem API. 5 // Custom binding for the fileSystem API.
6 6
7 var binding = apiBridge || require('binding').Binding.create('fileSystem'); 7 var binding = apiBridge || require('binding').Binding.create('fileSystem');
8 var sendRequest = bindingUtil ? 8 var sendRequest = bindingUtil ?
9 $Function.bind(bindingUtil.sendRequest, bindingUtil) : 9 $Function.bind(bindingUtil.sendRequest, bindingUtil) :
10 require('sendRequest').sendRequest; 10 require('sendRequest').sendRequest;
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 100
101 fileSystem.chooseFile = function() { 101 fileSystem.chooseFile = function() {
102 console.log("chrome.fileSystem.chooseFile is deprecated"); 102 console.log("chrome.fileSystem.chooseFile is deprecated");
103 console.log("Please use chrome.fileSystem.chooseEntry instead"); 103 console.log("Please use chrome.fileSystem.chooseEntry instead");
104 $Function.apply(fileSystem.chooseEntry, this, arguments); 104 $Function.apply(fileSystem.chooseEntry, this, arguments);
105 }; 105 };
106 }); 106 });
107 107
108 if (!apiBridge) 108 if (!apiBridge)
109 exports.$set('binding', binding.generate()); 109 exports.$set('binding', binding.generate());
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698