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

Issue 360673004: Demonstrate the functionality of the File System Provider API for archives. (Closed)

Created:
6 years, 5 months ago by cmihail
Modified:
6 years, 3 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Demonstrate the functionality of the File System Provider API for archives. Extension for mounting fake archives on launch event. Multiple archives can be mounted and handled at the same time. There is support for listening directories, reading files, etc. As an important feature we have the state saving on suspending the extension. When the extension is loaded again we can restore the state at the previous point before suspending. Also there is support for restarts and crashes by using the onStartup event. BUG=388080 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=280773

Patch Set 1 #

Total comments: 31

Patch Set 2 : Split readMetadataFromFile function in order to make the code more readable and correct some commen… #

Total comments: 20

Patch Set 3 : Resolve a bug with the entry.name used as mounted fileSystemId as entry.name can be duplicated. Now… #

Total comments: 4

Patch Set 4 : Resolve format issues for files stored in JSON format. #

Patch Set 5 : Add fileSystemProvider API extension example. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -6 lines) Patch
A + chrome/common/extensions/docs/examples/api/fileSystemProvider/cloudExtension/background.js View 1 2 3 4 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/common/extensions/docs/examples/api/fileSystemProvider/cloudExtension/manifest.json View 1 2 3 4 2 chunks +5 lines, -7 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
cmihail
PTAL
6 years, 5 months ago (2014-06-30 07:55:50 UTC) #1
cmihail
https://codereview.chromium.org/360673004/diff/1/chrome/common/extensions/docs/examples/api/fileSystemProvider/archive/background.js File chrome/common/extensions/docs/examples/api/fileSystemProvider/archive/background.js (right): https://codereview.chromium.org/360673004/diff/1/chrome/common/extensions/docs/examples/api/fileSystemProvider/archive/background.js#newcode152 chrome/common/extensions/docs/examples/api/fileSystemProvider/archive/background.js:152: var entryId = chrome.fileSystem.retainEntry(volumes[volumeId].entry_); As a mention: retainEntry executes ...
6 years, 5 months ago (2014-06-30 08:01:44 UTC) #2
mtomasz
Nice! Just minor style comments. https://codereview.chromium.org/360673004/diff/1/chrome/common/extensions/docs/examples/api/fileSystemProvider/archive/background.js File chrome/common/extensions/docs/examples/api/fileSystemProvider/archive/background.js (right): https://codereview.chromium.org/360673004/diff/1/chrome/common/extensions/docs/examples/api/fileSystemProvider/archive/background.js#newcode7 chrome/common/extensions/docs/examples/api/fileSystemProvider/archive/background.js:7: // For file examples ...
6 years, 5 months ago (2014-06-30 08:30:31 UTC) #3
mtomasz
https://codereview.chromium.org/360673004/diff/1/chrome/common/extensions/docs/examples/api/fileSystemProvider/archive/background.js File chrome/common/extensions/docs/examples/api/fileSystemProvider/archive/background.js (right): https://codereview.chromium.org/360673004/diff/1/chrome/common/extensions/docs/examples/api/fileSystemProvider/archive/background.js#newcode152 chrome/common/extensions/docs/examples/api/fileSystemProvider/archive/background.js:152: var entryId = chrome.fileSystem.retainEntry(volumes[volumeId].entry_); On 2014/06/30 08:01:44, cmihail wrote: ...
6 years, 5 months ago (2014-06-30 13:35:32 UTC) #4
cmihail
https://codereview.chromium.org/360673004/diff/1/chrome/common/extensions/docs/examples/api/fileSystemProvider/archive/background.js File chrome/common/extensions/docs/examples/api/fileSystemProvider/archive/background.js (right): https://codereview.chromium.org/360673004/diff/1/chrome/common/extensions/docs/examples/api/fileSystemProvider/archive/background.js#newcode7 chrome/common/extensions/docs/examples/api/fileSystemProvider/archive/background.js:7: // For file examples with metadata inside, see example1.fake ...
6 years, 5 months ago (2014-07-01 00:07:06 UTC) #5
mtomasz
https://codereview.chromium.org/360673004/diff/20001/chrome/common/extensions/docs/examples/api/fileSystemProvider/archive/background.js File chrome/common/extensions/docs/examples/api/fileSystemProvider/archive/background.js (right): https://codereview.chromium.org/360673004/diff/20001/chrome/common/extensions/docs/examples/api/fileSystemProvider/archive/background.js#newcode15 chrome/common/extensions/docs/examples/api/fileSystemProvider/archive/background.js:15: // Defines a volume object that contains information about ...
6 years, 5 months ago (2014-07-01 00:40:33 UTC) #6
cmihail
https://codereview.chromium.org/360673004/diff/20001/chrome/common/extensions/docs/examples/api/fileSystemProvider/archive/background.js File chrome/common/extensions/docs/examples/api/fileSystemProvider/archive/background.js (right): https://codereview.chromium.org/360673004/diff/20001/chrome/common/extensions/docs/examples/api/fileSystemProvider/archive/background.js#newcode15 chrome/common/extensions/docs/examples/api/fileSystemProvider/archive/background.js:15: // Defines a volume object that contains information about ...
6 years, 5 months ago (2014-07-01 01:27:22 UTC) #7
cmihail
https://codereview.chromium.org/360673004/diff/20001/chrome/common/extensions/docs/examples/api/fileSystemProvider/archive/background.js File chrome/common/extensions/docs/examples/api/fileSystemProvider/archive/background.js (right): https://codereview.chromium.org/360673004/diff/20001/chrome/common/extensions/docs/examples/api/fileSystemProvider/archive/background.js#newcode15 chrome/common/extensions/docs/examples/api/fileSystemProvider/archive/background.js:15: // Defines a volume object that contains information about ...
6 years, 5 months ago (2014-07-01 01:27:22 UTC) #8
mtomasz
lgtm with 2 nits https://codereview.chromium.org/360673004/diff/40001/chrome/common/extensions/docs/examples/api/fileSystemProvider/archive/example1.fake File chrome/common/extensions/docs/examples/api/fileSystemProvider/archive/example1.fake (right): https://codereview.chromium.org/360673004/diff/40001/chrome/common/extensions/docs/examples/api/fileSystemProvider/archive/example1.fake#newcode2 chrome/common/extensions/docs/examples/api/fileSystemProvider/archive/example1.fake:2: "/":{ nit: Please add a ...
6 years, 5 months ago (2014-07-01 01:31:29 UTC) #9
mtomasz
+@kalman for OWNERS review.
6 years, 5 months ago (2014-07-01 01:35:00 UTC) #10
cmihail
https://codereview.chromium.org/360673004/diff/40001/chrome/common/extensions/docs/examples/api/fileSystemProvider/archive/example1.fake File chrome/common/extensions/docs/examples/api/fileSystemProvider/archive/example1.fake (right): https://codereview.chromium.org/360673004/diff/40001/chrome/common/extensions/docs/examples/api/fileSystemProvider/archive/example1.fake#newcode2 chrome/common/extensions/docs/examples/api/fileSystemProvider/archive/example1.fake:2: "/":{ On 2014/07/01 01:31:29, mtomasz wrote: > nit: Please ...
6 years, 5 months ago (2014-07-01 01:40:03 UTC) #11
not at google - send to devlin
lgtm
6 years, 5 months ago (2014-07-01 02:41:19 UTC) #12
mtomasz
The CQ bit was checked by mtomasz@chromium.org
6 years, 5 months ago (2014-07-01 03:14:53 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cmihail@chromium.org/360673004/60001
6 years, 5 months ago (2014-07-01 03:15:28 UTC) #14
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_rel on tryserver.chromium ...
6 years, 5 months ago (2014-07-01 05:14:38 UTC) #15
commit-bot: I haz the power
6 years, 5 months ago (2014-07-01 07:21:43 UTC) #16
Message was sent while issue was closed.
Change committed as 280773

Powered by Google App Engine
This is Rietveld 408576698