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

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

Issue 10914284: Rename chrome.fileSystem apis to be expandable to directories if we wish. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed blank line Created 8 years, 3 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 0f2b9f4e234e4f4d480352a5ef163548145586c7..47c1328fc52f904e208d02545a6b3833fb06c23d 100644
--- a/chrome/renderer/resources/extensions/file_system_custom_bindings.js
+++ b/chrome/renderer/resources/extensions/file_system_custom_bindings.js
@@ -19,7 +19,7 @@ chromeHidden.registerCustomHook('fileSystem', function(bindingsAPI) {
return [fileSystemName, relativePath, callback];
});
}
- ['getDisplayPath', 'getWritableFileEntry', 'isWritableFileEntry']
+ ['getDisplayPath', 'getWritableEntry', 'isWritableEntry']
.forEach(bindFileEntryFunction);
function bindFileEntryCallback(functionName) {
@@ -47,5 +47,10 @@ chromeHidden.registerCustomHook('fileSystem', function(bindingsAPI) {
}
});
}
- ['getWritableFileEntry', 'chooseFile'].forEach(bindFileEntryCallback);
+ ['getWritableEntry', 'chooseEntry'].forEach(bindFileEntryCallback);
+
+ // Remove these deprecated versions of the functions.
+ chrome.fileSystem.getWritableFileEntry = chrome.fileSystem.getWritableEntry;
Mihai Parparita -not on Chrome 2012/09/14 06:01:59 It would be neat to have a wrapper that logs a war
+ chrome.fileSystem.isWritableFileEntry = chrome.fileSystem.isWritableEntry;
+ chrome.fileSystem.chooseFile = chrome.fileSystem.chooseEntry;
});

Powered by Google App Engine
This is Rietveld 408576698