summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkoz@chromium.org <koz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-14 15:39:45 +0000
committerkoz@chromium.org <koz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-14 15:39:45 +0000
commitf5d11a2c18231489b075c8db6c63ab425a565d43 (patch)
tree2058686ee6d319386989a52b0081daf3595640bc
parent0622617a1f86d4e2b988ea729defd97914dcda5d (diff)
downloadchromium_src-f5d11a2c18231489b075c8db6c63ab425a565d43.zip
chromium_src-f5d11a2c18231489b075c8db6c63ab425a565d43.tar.gz
chromium_src-f5d11a2c18231489b075c8db6c63ab425a565d43.tar.bz2
Expand on the documentation for chrome.fileSystem.getEntryId().
Review URL: https://chromiumcodereview.appspot.com/12804008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@188083 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/common/extensions/api/file_system.idl5
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/common/extensions/api/file_system.idl b/chrome/common/extensions/api/file_system.idl
index d894bd1..def73bf 100644
--- a/chrome/common/extensions/api/file_system.idl
+++ b/chrome/common/extensions/api/file_system.idl
@@ -73,7 +73,10 @@ namespace fileSystem {
// Returns the file entry with the given id.
[nocompile] static FileEntry getEntryById(DOMString id);
- // Returns the id of the given file entry.
+ // Returns the id of the given file entry. This can be used to retrieve file
+ // entries with getEntryById(). When an app is restarted (ie: it is sent the
+ // onRestarted event) it can regain access to the file entries it had by
+ // remembering their ids and calling getEntryById().
[nocompile] static DOMString getEntryId(
[instanceOf=FileEntry] object fileEntry);
};