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

Unified Diff: chrome/renderer/resources/extensions/file_system_custom_bindings.js

Issue 1029803004: Add chrome.fileSystem.GetVolumeList(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed chrome_extensions.js. Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/renderer/resources/extensions/file_system_custom_bindings.js
diff --git a/chrome/renderer/resources/extensions/file_system_custom_bindings.js b/chrome/renderer/resources/extensions/file_system_custom_bindings.js
index 5553ae93776113577a4939eccf914cd1b852701e..62a9ad6889f033218826e091121e4345e019de13 100644
--- a/chrome/renderer/resources/extensions/file_system_custom_bindings.js
+++ b/chrome/renderer/resources/extensions/file_system_custom_bindings.js
@@ -94,6 +94,16 @@ binding.registerCustomHook(function(bindingsAPI) {
[fileSystem]);
});
+ apiFunctions.setCustomCallback('getVolumeList',
+ function(name, request, callback, response) {
+ var volumeList = response || null;
+ sendRequest.safeCallbackApply(
+ 'fileSystem.getVolumeList',
+ request,
+ callback,
+ [volumeList]);
+ });
+
// TODO(benwells): Remove these deprecated versions of the functions.
fileSystem.getWritableFileEntry = function() {
console.log("chrome.fileSystem.getWritableFileEntry is deprecated");
« no previous file with comments | « chrome/common/extensions/api/file_system.idl ('k') | chrome/test/data/chromeos/app_mode/get_volume_list/key.pem » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698