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

Issue 10083067: gdata: Support opening zip file on Google Docs. (Closed)

Created:
8 years, 8 months ago by hshi
Modified:
8 years, 8 months ago
CC:
chromium-reviews, nkostylev+watch_chromium.org, mihaip+watch_chromium.org, Aaron Boodman, rginda+watch_chromium.org, arv (Not doing code reviews), stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

gdata: Support opening zip file on Google Docs. Pass the file extension in the 2nd argument to DiskMountManager::MountPath to indicate the archive format (e.g.: .zip, .rar, etc.) When mounting and unmounting archive files in GData cache, call GDataFileSystem::SetMountedState to set or clear the "mounted" state accordingly. BUG=chromium-os:28678 TEST=Verify that mounting/unmounting archive files on GData works correctly. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=133987

Patch Set 1 : gdata: Support opening zip file on Google Docs. #

Patch Set 2 : gdata: Support opening zip file on Google Docs. #

Patch Set 3 : gdata: Support opening zip file on Google Docs. #

Patch Set 4 : gdata: Support opening zip file on Google Docs. #

Patch Set 5 : gdata: Support opening zip file on Google Docs. #

Total comments: 10

Patch Set 6 : gdata: Support opening zip file on Google Docs #

Total comments: 5

Patch Set 7 : gdata: Support opening zip file on Google Docs. #

Patch Set 8 : gdata: Support opening zip file on Google Docs. #

Total comments: 7

Patch Set 9 : gdata: Support opening zip file on Google Docs. #

Patch Set 10 : gdata: Support opening zip file on Google Docs. #

Total comments: 2

Patch Set 11 : gdata: Support opening zip file on Google Docs. #

Patch Set 12 : gdata: Support opening zip file on Google Docs. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -41 lines) Patch
M chrome/browser/chromeos/disks/disk_mount_manager.h View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/disks/disk_mount_manager.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/disks/mock_disk_mount_manager.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/disks/mock_disk_mount_manager.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/extensions/file_browser_event_router.cc View 1 2 3 4 5 6 7 8 9 3 chunks +19 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_browser_private_api.h View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_browser_private_api.cc View 1 2 3 4 5 6 7 8 9 1 chunk +33 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_browser_private_apitest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/file_manager/js/file_manager.js View 1 2 3 1 chunk +10 lines, -7 lines 0 comments Download
M chrome/test/data/extensions/api_test/filebrowser_mount/test.js View 1 2 3 4 5 6 7 8 9 10 11 11 chunks +19 lines, -19 lines 0 comments Download
M chromeos/dbus/cros_disks_client.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M chromeos/dbus/cros_disks_client.cc View 3 chunks +3 lines, -1 line 0 comments Download
M chromeos/dbus/mock_cros_disks_client.h View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 34 (0 generated)
hshi
This is part#2 CL (originally from (http://codereview.chromium.org/10008100/), I split it into two CLs to make ...
8 years, 8 months ago (2012-04-18 23:38:12 UTC) #1
satorux1
This patch and http://codereview.chromium.org/10116044/ have the same patch title: gdata: Support mounting archive files in ...
8 years, 8 months ago (2012-04-19 00:14:55 UTC) #2
hshi
Does the new title look ok? It is not very descriptive but I don't know ...
8 years, 8 months ago (2012-04-19 00:27:03 UTC) #3
satorux1
sounds good!
8 years, 8 months ago (2012-04-19 00:31:32 UTC) #4
hshi
This is the second part change for bug 28678. It deals with extensions/dbus/disks changes. Please ...
8 years, 8 months ago (2012-04-24 01:27:51 UTC) #5
hshi
http://codereview.chromium.org/10083067/diff/45001/chrome/browser/chromeos/extensions/file_browser_private_api.cc File chrome/browser/chromeos/extensions/file_browser_private_api.cc (right): http://codereview.chromium.org/10083067/diff/45001/chrome/browser/chromeos/extensions/file_browser_private_api.cc#newcode1104 chrome/browser/chromeos/extensions/file_browser_private_api.cc:1104: } Please review this patch set #5. My previous ...
8 years, 8 months ago (2012-04-24 19:49:33 UTC) #6
satorux1
http://codereview.chromium.org/10083067/diff/45001/chrome/browser/chromeos/extensions/file_browser_private_api.cc File chrome/browser/chromeos/extensions/file_browser_private_api.cc (right): http://codereview.chromium.org/10083067/diff/45001/chrome/browser/chromeos/extensions/file_browser_private_api.cc#newcode1032 chrome/browser/chromeos/extensions/file_browser_private_api.cc:1032: OnMountedStateSet(mount_type_str, FilePath::StringType(), can you add some comment why we ...
8 years, 8 months ago (2012-04-24 20:46:53 UTC) #7
hshi
Please review Patch Set #6. Toni has pointed out that it is in fact indeed ...
8 years, 8 months ago (2012-04-24 21:18:22 UTC) #8
satorux1
LGTM, but please wait for LGTM from Toni. http://codereview.chromium.org/10083067/diff/45001/chrome/browser/chromeos/extensions/file_browser_private_api.cc File chrome/browser/chromeos/extensions/file_browser_private_api.cc (right): http://codereview.chromium.org/10083067/diff/45001/chrome/browser/chromeos/extensions/file_browser_private_api.cc#newcode1032 chrome/browser/chromeos/extensions/file_browser_private_api.cc:1032: OnMountedStateSet(mount_type_str, ...
8 years, 8 months ago (2012-04-24 22:54:15 UTC) #9
hshi
Toni, are you fine with my changes to the unit tests? I have built and ...
8 years, 8 months ago (2012-04-24 23:00:04 UTC) #10
satorux1
http://codereview.chromium.org/10083067/diff/52004/chromeos/dbus/cros_disks_client.h File chromeos/dbus/cros_disks_client.h (right): http://codereview.chromium.org/10083067/diff/52004/chromeos/dbus/cros_disks_client.h#newcode182 chromeos/dbus/cros_disks_client.h:182: // is auto-detected. On 2012/04/24 23:00:04, hshi wrote: > ...
8 years, 8 months ago (2012-04-24 23:01:29 UTC) #11
Ben Chan
http://codereview.chromium.org/10083067/diff/52004/chromeos/dbus/cros_disks_client.h File chromeos/dbus/cros_disks_client.h (right): http://codereview.chromium.org/10083067/diff/52004/chromeos/dbus/cros_disks_client.h#newcode182 chromeos/dbus/cros_disks_client.h:182: // is auto-detected. On 2012/04/24 23:00:04, hshi wrote: > ...
8 years, 8 months ago (2012-04-24 23:04:16 UTC) #12
hshi
http://codereview.chromium.org/10083067/diff/52004/chromeos/dbus/cros_disks_client.h File chromeos/dbus/cros_disks_client.h (right): http://codereview.chromium.org/10083067/diff/52004/chromeos/dbus/cros_disks_client.h#newcode182 chromeos/dbus/cros_disks_client.h:182: // is auto-detected. On 2012/04/24 23:04:16, Ben Chan wrote: ...
8 years, 8 months ago (2012-04-24 23:10:14 UTC) #13
hshi
Toni suggested to add one more unit test for removeMount of invalid mount path (it ...
8 years, 8 months ago (2012-04-24 23:49:09 UTC) #14
tbarzic
http://codereview.chromium.org/10083067/diff/52007/chrome/browser/chromeos/extensions/file_browser_event_router.cc File chrome/browser/chromeos/extensions/file_browser_event_router.cc (right): http://codereview.chromium.org/10083067/diff/52007/chrome/browser/chromeos/extensions/file_browser_event_router.cc#newcode417 chrome/browser/chromeos/extensions/file_browser_event_router.cc:417: // Initiate disk mount operation. Here MountPath auto-detects the ...
8 years, 8 months ago (2012-04-25 00:09:20 UTC) #15
hshi
http://codereview.chromium.org/10083067/diff/52007/chrome/browser/chromeos/extensions/file_browser_private_api.cc File chrome/browser/chromeos/extensions/file_browser_private_api.cc (right): http://codereview.chromium.org/10083067/diff/52007/chrome/browser/chromeos/extensions/file_browser_private_api.cc#newcode1110 chrome/browser/chromeos/extensions/file_browser_private_api.cc:1110: gdata::GDataSystemService* system_service = The problem is that the actual ...
8 years, 8 months ago (2012-04-25 00:44:17 UTC) #16
tbarzic
http://codereview.chromium.org/10083067/diff/52007/chrome/browser/chromeos/extensions/file_browser_private_api.cc File chrome/browser/chromeos/extensions/file_browser_private_api.cc (right): http://codereview.chromium.org/10083067/diff/52007/chrome/browser/chromeos/extensions/file_browser_private_api.cc#newcode1110 chrome/browser/chromeos/extensions/file_browser_private_api.cc:1110: gdata::GDataSystemService* system_service = On 2012/04/25 00:44:17, hshi wrote: > ...
8 years, 8 months ago (2012-04-25 04:07:55 UTC) #17
hshi1
The unmounting part is straightforward because unmounting occurs before updating cache state. On the other ...
8 years, 8 months ago (2012-04-25 04:32:29 UTC) #18
hshi
New patch set removes the "Here". But see my comments regarding the proper handling of ...
8 years, 8 months ago (2012-04-25 17:13:04 UTC) #19
hshi
Toni, how about this? (1) Remove the SetMountedState(false) call in RemoveMountFunction (2) In FileBrowserEventRouter::MountCompleted, if ...
8 years, 8 months ago (2012-04-25 17:33:20 UTC) #20
tbarzic
http://codereview.chromium.org/10083067/diff/52007/chrome/browser/chromeos/extensions/file_browser_private_api.cc File chrome/browser/chromeos/extensions/file_browser_private_api.cc (right): http://codereview.chromium.org/10083067/diff/52007/chrome/browser/chromeos/extensions/file_browser_private_api.cc#newcode1048 chrome/browser/chromeos/extensions/file_browser_private_api.cc:1048: disk_mount_manager->MountPath(file_path.AsUTF8Unsafe(), On 2012/04/25 17:13:05, hshi wrote: > On 2012/04/25 ...
8 years, 8 months ago (2012-04-25 17:37:00 UTC) #21
satorux1
On 2012/04/25 17:37:00, tbarzic wrote: > http://codereview.chromium.org/10083067/diff/52007/chrome/browser/chromeos/extensions/file_browser_private_api.cc > File chrome/browser/chromeos/extensions/file_browser_private_api.cc (right): > > http://codereview.chromium.org/10083067/diff/52007/chrome/browser/chromeos/extensions/file_browser_private_api.cc#newcode1048 > ...
8 years, 8 months ago (2012-04-25 17:52:09 UTC) #22
hshi
Thanks Toni, Satoru. I talked to Toni just a moment ago and realized that this ...
8 years, 8 months ago (2012-04-25 18:25:25 UTC) #23
tonibarzic
lgtm http://codereview.chromium.org/10083067/diff/65001/chrome/test/data/extensions/api_test/filebrowser_mount/test.js File chrome/test/data/extensions/api_test/filebrowser_mount/test.js (right): http://codereview.chromium.org/10083067/diff/65001/chrome/test/data/extensions/api_test/filebrowser_mount/test.js#newcode141 chrome/test/data/extensions/api_test/filebrowser_mount/test.js:141: function removeMountNonExisting() { This will probably fail now ...
8 years, 8 months ago (2012-04-25 18:39:09 UTC) #24
hshi
http://codereview.chromium.org/10083067/diff/65001/chrome/test/data/extensions/api_test/filebrowser_mount/test.js File chrome/test/data/extensions/api_test/filebrowser_mount/test.js (right): http://codereview.chromium.org/10083067/diff/65001/chrome/test/data/extensions/api_test/filebrowser_mount/test.js#newcode141 chrome/test/data/extensions/api_test/filebrowser_mount/test.js:141: function removeMountNonExisting() { Yes I agree that this test ...
8 years, 8 months ago (2012-04-25 18:48:08 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hshi@google.com/10083067/65004
8 years, 8 months ago (2012-04-25 18:49:48 UTC) #26
commit-bot: I haz the power
Presubmit check for 10083067-65004 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 8 months ago (2012-04-25 18:49:59 UTC) #27
hshi
Adding Robert to review the change in file_manager.js, thanks!
8 years, 8 months ago (2012-04-25 18:53:47 UTC) #28
rginda
file_manager.js lgtm
8 years, 8 months ago (2012-04-25 20:05:36 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hshi@google.com/10083067/65004
8 years, 8 months ago (2012-04-25 20:07:21 UTC) #30
commit-bot: I haz the power
Presubmit check for 10083067-65004 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 8 months ago (2012-04-25 20:07:49 UTC) #31
hshi
Patch Set #12 updates filebrowser_mount/test.js (cosmetic change only). Apparently commit-bot dislikes double-quotes in javascript. All ...
8 years, 8 months ago (2012-04-25 20:16:53 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hshi@google.com/10083067/58008
8 years, 8 months ago (2012-04-25 20:17:35 UTC) #33
commit-bot: I haz the power
8 years, 8 months ago (2012-04-25 21:46:50 UTC) #34
Change committed as 133987

Powered by Google App Engine
This is Rietveld 408576698