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

Unified Diff: chrome/common/extensions/docs/server2/templates/articles/app_storage.html

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: Typo 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/common/extensions/docs/server2/templates/articles/app_storage.html
diff --git a/chrome/common/extensions/docs/server2/templates/articles/app_storage.html b/chrome/common/extensions/docs/server2/templates/articles/app_storage.html
index 83ddc5197cf73128ea4d62ce5147546decf618dd..77c65d79022432f503b7a209e4a87e544810a060 100644
--- a/chrome/common/extensions/docs/server2/templates/articles/app_storage.html
+++ b/chrome/common/extensions/docs/server2/templates/articles/app_storage.html
@@ -167,7 +167,7 @@ If the file doesn't exist, an error is thrown.
var chosenFileEntry = null;
chooseFileButton.addEventListener('click', function(e) {
- chrome.fileSystem.chooseFile({type: 'openFile'}, function(readOnlyEntry) {
+ chrome.fileSystem.chooseEntry({type: 'openFile'}, function(readOnlyEntry) {
readOnlyEntry.file(function(file) {
var reader = new FileReader();
@@ -189,13 +189,13 @@ chooseFileButton.addEventListener('click', function(e) {
The two common use-cases
for writing a file are "Save" and "Save as".
The following code creates a
-<code>writableFileEntry</code>
+<code>writableEntry</code>
from the read-only <code>chosenFileEntry</code> and
writes the selected file to it.
</p>
<pre>
- chrome.fileSystem.getWritableFileEntry(chosenFileEntry, function(writableFileEntry) {
+ chrome.fileSystem.getWritableEntry(chosenFileEntry, function(writableFileEntry) {
writableFileEntry.createWriter(function(writer) {
writer.onerror = errorHandler;
writer.onwriteend = callback;
@@ -215,7 +215,7 @@ using the <code>writer.write()</code> method.
</p>
<pre>
-chrome.fileSystem.chooseFile({type: 'saveFile'}, function(writableFileEntry) {
+chrome.fileSystem.chooseEntry({type: 'saveFile'}, function(writableFileEntry) {
writableFileEntry.createWriter(function(writer) {
writer.onerror = errorHandler;
writer.onwriteend = function(e) {
« no previous file with comments | « chrome/common/extensions/api/file_system.idl ('k') | chrome/renderer/resources/extensions/file_system_custom_bindings.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698