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

Issue 7457001: Adding support for mount point different from removable devices to MountLibrary (Closed)

Created:
9 years, 5 months ago by tbarzic
Modified:
9 years, 5 months ago
CC:
chromium-reviews, Aaron Boodman, rginda+watch_chromium.org, achuith+watch_chromium.org, Erik does not do reviews, davemoore+watch_chromium.org
Visibility:
Public.

Description

Adding support for mount point different from removable devices to MountLibrary (work in progress..have to add GetMountPoints support) tested on ChromeOS with these three patches: http://gerrit.chromium.org/gerrit/#change,4447 http://gerrit.chromium.org/gerrit/#change,4449 http://gerrit.chromium.org/gerrit/#change,4544 BUG=chromium-os:17673, chromium-os:17783 TEST=Made sure mounting devices still works and that MountCompleted event gets through to file_browser_event_router (checking ui and chrome logs for mount completed entries) Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=93754

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 5

Patch Set 5 : '' #

Total comments: 1

Patch Set 6 : '' #

Total comments: 13

Patch Set 7 : '' #

Patch Set 8 : '' #

Total comments: 1

Patch Set 9 : '' #

Total comments: 4

Patch Set 10 : '' #

Patch Set 11 : '' #

Total comments: 8

Patch Set 12 : '' #

Patch Set 13 : add MountType type to extension_api.json #

Total comments: 6

Patch Set 14 : '' #

Patch Set 15 : '' #

Total comments: 4

Patch Set 16 : '' #

Total comments: 4

Patch Set 17 : '' #

Patch Set 18 : '' #

Patch Set 19 : '' #

Total comments: 8

Patch Set 20 : some compile issues #

Total comments: 2

Patch Set 21 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+524 lines, -92 lines) Patch
M chrome/browser/chromeos/cros/mock_mount_library.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +11 lines, -1 line 0 comments Download
M chrome/browser/chromeos/cros/mock_mount_library.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/cros/mount_library.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 4 chunks +33 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/cros/mount_library.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 12 chunks +132 lines, -64 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_browser_event_router.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_browser_event_router.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 4 chunks +63 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_event_names.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/extension_event_names.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_file_browser_private_api.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +41 lines, -6 lines 0 comments Download
M chrome/browser/extensions/extension_file_browser_private_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +117 lines, -7 lines 0 comments Download
M chrome/browser/extensions/extension_function_dispatcher.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/chromeos/imageburner/webui_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/extension_api.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 5 chunks +103 lines, -5 lines 0 comments Download
M chrome/test/data/extensions/api_test/filebrowser_mount/test.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
tbarzic
http://codereview.chromium.org/7457001/diff/12001/chrome/browser/chromeos/cros/mount_library.cc File chrome/browser/chromeos/cros/mount_library.cc (right): http://codereview.chromium.org/7457001/diff/12001/chrome/browser/chromeos/cros/mount_library.cc#newcode283 chrome/browser/chromeos/cros/mount_library.cc:283: LOG(WARNING) <<"MountCompleted fired" <<error_code<<source_path<<mount_path; this (and other not indented ...
9 years, 5 months ago (2011-07-21 23:49:23 UTC) #1
zel
http://codereview.chromium.org/7457001/diff/12001/chrome/browser/chromeos/extensions/file_browser_event_router.cc File chrome/browser/chromeos/extensions/file_browser_event_router.cc (right): http://codereview.chromium.org/7457001/diff/12001/chrome/browser/chromeos/extensions/file_browser_event_router.cc#newcode292 chrome/browser/chromeos/extensions/file_browser_event_router.cc:292: LOG(WARNING) << "MountCompleted" << error_code << source_path; space http://codereview.chromium.org/7457001/diff/12001/chrome/browser/extensions/extension_event_names.cc ...
9 years, 5 months ago (2011-07-22 00:48:37 UTC) #2
tbarzic
http://codereview.chromium.org/7457001/diff/12001/chrome/browser/chromeos/extensions/file_browser_event_router.cc File chrome/browser/chromeos/extensions/file_browser_event_router.cc (right): http://codereview.chromium.org/7457001/diff/12001/chrome/browser/chromeos/extensions/file_browser_event_router.cc#newcode292 chrome/browser/chromeos/extensions/file_browser_event_router.cc:292: LOG(WARNING) << "MountCompleted" << error_code << source_path; On 2011/07/22 ...
9 years, 5 months ago (2011-07-22 00:57:58 UTC) #3
tbarzic
http://codereview.chromium.org/7457001/diff/18002/chrome/browser/chromeos/cros/mount_library.h File chrome/browser/chromeos/cros/mount_library.h (right): http://codereview.chromium.org/7457001/diff/18002/chrome/browser/chromeos/cros/mount_library.h#newcode123 chrome/browser/chromeos/cros/mount_library.h:123: virtual const MountPoints& mount_points() const = 0; MountPointSet
9 years, 5 months ago (2011-07-22 01:00:07 UTC) #4
tbarzic
http://codereview.chromium.org/7457001/diff/21003/chrome/browser/chromeos/cros/mount_library.cc File chrome/browser/chromeos/cros/mount_library.cc (right): http://codereview.chromium.org/7457001/diff/21003/chrome/browser/chromeos/cros/mount_library.cc#newcode189 chrome/browser/chromeos/cros/mount_library.cc:189: LOG(WARNING) <<"MountCompleted" <<error_code<<source_path<<mount_path; to be removed before landing http://codereview.chromium.org/7457001/diff/21003/chrome/browser/chromeos/cros/mount_library.cc#newcode284 ...
9 years, 5 months ago (2011-07-22 03:13:23 UTC) #5
zel
http://codereview.chromium.org/7457001/diff/21003/chrome/browser/chromeos/cros/mount_library.cc File chrome/browser/chromeos/cros/mount_library.cc (right): http://codereview.chromium.org/7457001/diff/21003/chrome/browser/chromeos/cros/mount_library.cc#newcode288 chrome/browser/chromeos/cros/mount_library.cc:288: mount_points_.insert(mount_path); see my comments about this data not being ...
9 years, 5 months ago (2011-07-22 04:47:17 UTC) #6
tbarzic
http://codereview.chromium.org/7457001/diff/21003/chrome/browser/chromeos/cros/mount_library.cc File chrome/browser/chromeos/cros/mount_library.cc (right): http://codereview.chromium.org/7457001/diff/21003/chrome/browser/chromeos/cros/mount_library.cc#newcode288 chrome/browser/chromeos/cros/mount_library.cc:288: mount_points_.insert(mount_path); On 2011/07/22 04:47:17, zel wrote: > see my ...
9 years, 5 months ago (2011-07-22 06:21:51 UTC) #7
zel
http://codereview.chromium.org/7457001/diff/19016/chrome/browser/chromeos/cros/mount_library.cc File chrome/browser/chromeos/cros/mount_library.cc (right): http://codereview.chromium.org/7457001/diff/19016/chrome/browser/chromeos/cros/mount_library.cc#newcode285 chrome/browser/chromeos/cros/mount_library.cc:285: mount_points_.insert(std::pair<std::string, MountPointInfo>(mount_path, nit: std::pair<std::string, MountPointInfo> can be replaced with ...
9 years, 5 months ago (2011-07-22 06:56:34 UTC) #8
tbarzic
http://codereview.chromium.org/7457001/diff/19016/chrome/browser/chromeos/cros/mount_library.cc File chrome/browser/chromeos/cros/mount_library.cc (right): http://codereview.chromium.org/7457001/diff/19016/chrome/browser/chromeos/cros/mount_library.cc#newcode285 chrome/browser/chromeos/cros/mount_library.cc:285: mount_points_.insert(std::pair<std::string, MountPointInfo>(mount_path, On 2011/07/22 06:56:34, zel wrote: > nit: ...
9 years, 5 months ago (2011-07-22 08:01:29 UTC) #9
Oleg Eterevsky
http://codereview.chromium.org/7457001/diff/23020/chrome/browser/chromeos/cros/mount_library.cc File chrome/browser/chromeos/cros/mount_library.cc (right): http://codereview.chromium.org/7457001/diff/23020/chrome/browser/chromeos/cros/mount_library.cc#newcode304 chrome/browser/chromeos/cros/mount_library.cc:304: void OnUnmountPath(const char* source_path, Can we throw an event ...
9 years, 5 months ago (2011-07-22 13:34:52 UTC) #10
tbarzic
http://codereview.chromium.org/7457001/diff/23020/chrome/browser/chromeos/cros/mount_library.cc File chrome/browser/chromeos/cros/mount_library.cc (right): http://codereview.chromium.org/7457001/diff/23020/chrome/browser/chromeos/cros/mount_library.cc#newcode304 chrome/browser/chromeos/cros/mount_library.cc:304: void OnUnmountPath(const char* source_path, On 2011/07/22 13:34:53, Oleg wrote: ...
9 years, 5 months ago (2011-07-22 17:21:29 UTC) #11
zel
http://codereview.chromium.org/7457001/diff/19024/chrome/common/extensions/api/extension_api.json File chrome/common/extensions/api/extension_api.json (right): http://codereview.chromium.org/7457001/diff/19024/chrome/common/extensions/api/extension_api.json#newcode5175 chrome/common/extensions/api/extension_api.json:5175: "id": "MountType", remove this type, see below http://codereview.chromium.org/7457001/diff/19024/chrome/common/extensions/api/extension_api.json#newcode5258 chrome/common/extensions/api/extension_api.json:5258: ...
9 years, 5 months ago (2011-07-22 21:12:22 UTC) #12
tbarzic
http://codereview.chromium.org/7457001/diff/19024/chrome/common/extensions/api/extension_api.json File chrome/common/extensions/api/extension_api.json (right): http://codereview.chromium.org/7457001/diff/19024/chrome/common/extensions/api/extension_api.json#newcode5175 chrome/common/extensions/api/extension_api.json:5175: "id": "MountType", On 2011/07/22 21:12:23, zel wrote: > remove ...
9 years, 5 months ago (2011-07-22 22:04:47 UTC) #13
zel
almost there http://codereview.chromium.org/7457001/diff/20038/chrome/browser/chromeos/extensions/file_browser_event_router.cc File chrome/browser/chromeos/extensions/file_browser_event_router.cc (right): http://codereview.chromium.org/7457001/diff/20038/chrome/browser/chromeos/extensions/file_browser_event_router.cc#newcode63 chrome/browser/chromeos/extensions/file_browser_event_router.cc:63: return "unknown"; prefix error events with error_* ...
9 years, 5 months ago (2011-07-22 22:09:38 UTC) #14
tbarzic
http://codereview.chromium.org/7457001/diff/20038/chrome/browser/chromeos/extensions/file_browser_event_router.cc File chrome/browser/chromeos/extensions/file_browser_event_router.cc (right): http://codereview.chromium.org/7457001/diff/20038/chrome/browser/chromeos/extensions/file_browser_event_router.cc#newcode63 chrome/browser/chromeos/extensions/file_browser_event_router.cc:63: return "unknown"; On 2011/07/22 22:09:38, zel wrote: > prefix ...
9 years, 5 months ago (2011-07-22 22:15:14 UTC) #15
zel
http://codereview.chromium.org/7457001/diff/24028/chrome/browser/chromeos/extensions/file_browser_event_router.cc File chrome/browser/chromeos/extensions/file_browser_event_router.cc (right): http://codereview.chromium.org/7457001/diff/24028/chrome/browser/chromeos/extensions/file_browser_event_router.cc#newcode282 chrome/browser/chromeos/extensions/file_browser_event_router.cc:282: mount_info->SetString("eventType", "mounting"); this does not match extension_api.json values http://codereview.chromium.org/7457001/diff/24028/chrome/browser/chromeos/extensions/file_browser_event_router.cc#newcode284 ...
9 years, 5 months ago (2011-07-22 22:24:06 UTC) #16
tbarzic
http://codereview.chromium.org/7457001/diff/24028/chrome/browser/chromeos/extensions/file_browser_event_router.cc File chrome/browser/chromeos/extensions/file_browser_event_router.cc (right): http://codereview.chromium.org/7457001/diff/24028/chrome/browser/chromeos/extensions/file_browser_event_router.cc#newcode282 chrome/browser/chromeos/extensions/file_browser_event_router.cc:282: mount_info->SetString("eventType", "mounting"); On 2011/07/22 22:24:06, zel wrote: > this ...
9 years, 5 months ago (2011-07-22 22:27:41 UTC) #17
zel
LGTM
9 years, 5 months ago (2011-07-22 22:31:56 UTC) #18
tbarzic
Merged Oleg's change into this one, so could you have another look..
9 years, 5 months ago (2011-07-22 23:37:17 UTC) #19
zel
http://codereview.chromium.org/7457001/diff/17063/chrome/browser/extensions/extension_file_browser_private_api.cc File chrome/browser/extensions/extension_file_browser_private_api.cc (right): http://codereview.chromium.org/7457001/diff/17063/chrome/browser/extensions/extension_file_browser_private_api.cc#newcode1092 chrome/browser/extensions/extension_file_browser_private_api.cc:1092: NOTREACHED(); change NOTREACHED() in this function to this instead: ...
9 years, 5 months ago (2011-07-22 23:50:42 UTC) #20
zel
http://codereview.chromium.org/7457001/diff/17063/chrome/browser/extensions/extension_function_dispatcher.cc File chrome/browser/extensions/extension_function_dispatcher.cc (right): http://codereview.chromium.org/7457001/diff/17063/chrome/browser/extensions/extension_function_dispatcher.cc#newcode351 chrome/browser/extensions/extension_function_dispatcher.cc:351: RegisterFunction<RemoveMountFunction>(); GetMountPointsFunction is missing
9 years, 5 months ago (2011-07-22 23:51:22 UTC) #21
zel
http://codereview.chromium.org/7457001/diff/22049/chrome/browser/chromeos/extensions/file_browser_event_router.h File chrome/browser/chromeos/extensions/file_browser_event_router.h (right): http://codereview.chromium.org/7457001/diff/22049/chrome/browser/chromeos/extensions/file_browser_event_router.h#newcode51 chrome/browser/chromeos/extensions/file_browser_event_router.h:51: const std::string& source_path, pass MountPointInfo here instead of these ...
9 years, 5 months ago (2011-07-22 23:54:20 UTC) #22
rniwa-cr
It appears that this broke InstallLocalized on Chromium OS and Linux: http://build.chromium.org/p/chromium/builders/Linux%20Tests%20%28dbg%29%28shared%29/builds/1524 http://build.chromium.org/p/chromium/builders/Linux%20Tests%20%28Views%20dbg%29%281%29/builds/3352
9 years, 5 months ago (2011-07-23 04:18:38 UTC) #23
rniwa-cr
9 years, 5 months ago (2011-07-23 04:42:20 UTC) #24
Sorry, I had to roll it out in
http://src.chromium.org/viewvc/chrome?view=rev&revision=93775 as there were
nobody else to take care of the tree.

Powered by Google App Engine
This is Rietveld 408576698