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

Issue 185393012: Change media galleries to external file system type to add toURL support (Closed)

Created:
6 years, 9 months ago by vandebo (ex-Chrome)
Modified:
6 years, 9 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, Lei Zhang, tfarina, jam, nhiroki, joi+watch-content_chromium.org, tommycli, darin-cc_chromium.org, Greg Billock, chromium-apps-reviews_chromium.org, kinuko+watch
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : reupload #

Patch Set 3 : checkpoint #

Patch Set 4 : works #

Patch Set 5 : Mac/Win compile #

Total comments: 23

Patch Set 6 : comments #

Patch Set 7 : fix win/mac compile #

Patch Set 8 : Add test for URL access #

Total comments: 13

Patch Set 9 : Address comments #

Patch Set 10 : Rebase #

Total comments: 2

Patch Set 11 : Fix picasa,itunes,iphoto path parsing #

Total comments: 4

Patch Set 12 : Fix thread issue #

Total comments: 3

Patch Set 13 : ASCII strings #

Patch Set 14 : Win compile #

Patch Set 15 : Fix imported file util unit tests #

Patch Set 16 : Fix test on CrOS #

Patch Set 17 : Restore tests #

Patch Set 18 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+739 lines, -265 lines) Patch
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/media_galleries/media_galleries_api.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/media_galleries/media_galleries_apitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 6 chunks +31 lines, -15 lines 0 comments Download
M chrome/browser/media_galleries/fileapi/device_media_async_file_util.cc View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/media_galleries/fileapi/iphoto_file_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +18 lines, -6 lines 0 comments Download
M chrome/browser/media_galleries/fileapi/iphoto_file_util_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/media_galleries/fileapi/itunes_file_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +20 lines, -8 lines 0 comments Download
M chrome/browser/media_galleries/fileapi/itunes_file_util_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/media_galleries/fileapi/media_file_system_backend.h View 1 2 3 4 5 2 chunks +15 lines, -1 line 0 comments Download
M chrome/browser/media_galleries/fileapi/media_file_system_backend.cc View 1 2 3 4 5 4 chunks +128 lines, -2 lines 0 comments Download
M chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/media_galleries/fileapi/mtp_device_map_service.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/media_galleries/fileapi/picasa_file_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +19 lines, -10 lines 0 comments Download
M chrome/browser/media_galleries/fileapi/picasa_file_util_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/media_galleries/imported_media_gallery_registry.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +17 lines, -8 lines 0 comments Download
M chrome/browser/media_galleries/imported_media_gallery_registry.cc View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +84 lines, -60 lines 0 comments Download
M chrome/browser/media_galleries/media_file_system_context.h View 1 chunk +12 lines, -7 lines 0 comments Download
M chrome/browser/media_galleries/media_file_system_registry.h View 1 2 3 3 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/media_galleries/media_file_system_registry.cc View 1 2 3 4 5 6 7 8 12 chunks +187 lines, -70 lines 0 comments Download
M chrome/browser/media_galleries/media_file_system_registry_unittest.cc View 1 2 3 5 chunks +38 lines, -38 lines 0 comments Download
M chrome/browser/media_galleries/media_galleries_preferences.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +25 lines, -7 lines 0 comments Download
M chrome/renderer/extensions/media_galleries_custom_bindings.cc View 1 2 3 4 5 1 chunk +11 lines, -10 lines 0 comments Download
A + chrome/test/data/extensions/api_test/media_galleries/tourl/manifest.json View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
A chrome/test/data/extensions/api_test/media_galleries/tourl/test.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +51 lines, -0 lines 0 comments Download
M components/storage_monitor/media_storage_util.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M components/storage_monitor/media_storage_util_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/child_process_security_policy_impl.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/child_process_security_policy_impl.cc View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
M content/public/browser/child_process_security_policy.h View 1 chunk +6 lines, -0 lines 0 comments Download
M webkit/browser/fileapi/file_system_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +6 lines, -4 lines 0 comments Download

Messages

Total messages: 58 (0 generated)
vandebo (ex-Chrome)
Please take a first look at this CL. I'm still working on a browser test ...
6 years, 9 months ago (2014-03-19 23:20:56 UTC) #1
Lei Zhang
https://codereview.chromium.org/185393012/diff/80001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/185393012/diff/80001/chrome/browser/chrome_content_browser_client.cc#newcode51 chrome/browser/chrome_content_browser_client.cc:51: #include "chrome/browser/media_galleries/fileapi/media_file_system_backend.h" Already on line 207. https://codereview.chromium.org/185393012/diff/80001/chrome/browser/media_galleries/fileapi/media_file_system_backend.cc File chrome/browser/media_galleries/fileapi/media_file_system_backend.cc ...
6 years, 9 months ago (2014-03-20 00:46:25 UTC) #2
tzik
Looks good. We can't pass external filesystem to NaCl plugin, while we can't pass isolated. ...
6 years, 9 months ago (2014-03-20 05:52:42 UTC) #3
vandebo (ex-Chrome)
https://codereview.chromium.org/185393012/diff/80001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/185393012/diff/80001/chrome/browser/chrome_content_browser_client.cc#newcode51 chrome/browser/chrome_content_browser_client.cc:51: #include "chrome/browser/media_galleries/fileapi/media_file_system_backend.h" On 2014/03/20 00:46:26, Lei Zhang wrote: > ...
6 years, 9 months ago (2014-03-20 18:08:53 UTC) #4
vandebo (ex-Chrome)
Added the test
6 years, 9 months ago (2014-03-20 19:39:02 UTC) #5
Lei Zhang
https://codereview.chromium.org/185393012/diff/80001/chrome/browser/media_galleries/fileapi/media_file_system_backend.h File chrome/browser/media_galleries/fileapi/media_file_system_backend.h (right): https://codereview.chromium.org/185393012/diff/80001/chrome/browser/media_galleries/fileapi/media_file_system_backend.h#newcode45 chrome/browser/media_galleries/fileapi/media_file_system_backend.h:45: static std::string ConstructMountName(const base::FilePath& profile_path, On 2014/03/20 18:08:53, vandebo ...
6 years, 9 months ago (2014-03-20 21:37:52 UTC) #6
Lei Zhang
lgtm with some more comments (mostly nits) https://codereview.chromium.org/185393012/diff/140001/chrome/browser/media_galleries/media_file_system_registry.cc File chrome/browser/media_galleries/media_file_system_registry.cc (right): https://codereview.chromium.org/185393012/diff/140001/chrome/browser/media_galleries/media_file_system_registry.cc#newcode378 chrome/browser/media_galleries/media_file_system_registry.cc:378: !MediaStorageUtil::CanCreateFileSystem(device_id, path)) ...
6 years, 9 months ago (2014-03-20 21:58:54 UTC) #7
tzik
On 2014/03/20 05:52:42, tzik wrote: > Looks good. > > We can't pass external filesystem ...
6 years, 9 months ago (2014-03-24 03:17:23 UTC) #8
tzik
On 2014/03/24 03:17:23, tzik wrote: > On 2014/03/20 05:52:42, tzik wrote: > > Looks good. ...
6 years, 9 months ago (2014-03-24 04:53:20 UTC) #9
vandebo (ex-Chrome)
On 2014/03/24 04:53:20, tzik wrote: > On 2014/03/24 03:17:23, tzik wrote: > > On 2014/03/20 ...
6 years, 9 months ago (2014-03-24 17:50:19 UTC) #10
vandebo (ex-Chrome)
+tsepez for CPSP
6 years, 9 months ago (2014-03-24 17:52:13 UTC) #11
Tom Sepez
On 2014/03/24 17:52:13, vandebo wrote: > +tsepez for CPSP Adding jschuh@ in case there are ...
6 years, 9 months ago (2014-03-24 19:36:53 UTC) #12
vandebo (ex-Chrome)
On 2014/03/24 19:36:53, Tom Sepez wrote: > On 2014/03/24 17:52:13, vandebo wrote: > > +tsepez ...
6 years, 9 months ago (2014-03-24 21:16:40 UTC) #13
jschuh
On 2014/03/24 19:36:53, Tom Sepez wrote: > On 2014/03/24 17:52:13, vandebo wrote: > > +tsepez ...
6 years, 9 months ago (2014-03-24 22:23:21 UTC) #14
vandebo (ex-Chrome)
On 2014/03/24 22:23:21, Justin Schuh wrote: > On 2014/03/24 19:36:53, Tom Sepez wrote: > > ...
6 years, 9 months ago (2014-03-25 16:30:07 UTC) #15
Tom Sepez
> Tom, ss there an outstanding question/request here? It looks like > ChildProcessSecurityPolicyTest.FilePermissions already tests ...
6 years, 9 months ago (2014-03-25 17:02:19 UTC) #16
vandebo (ex-Chrome)
The CQ bit was checked by vandebo@chromium.org
6 years, 9 months ago (2014-03-25 17:40:36 UTC) #17
vandebo (ex-Chrome)
On 2014/03/25 17:02:19, Tom Sepez wrote: > > Tom, ss there an outstanding question/request here? ...
6 years, 9 months ago (2014-03-25 17:41:38 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vandebo@chromium.org/185393012/180001
6 years, 9 months ago (2014-03-25 17:41:51 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-25 18:20:51 UTC) #20
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=57320
6 years, 9 months ago (2014-03-25 18:20:52 UTC) #21
vandebo (ex-Chrome)
+joi for content/public
6 years, 9 months ago (2014-03-25 18:29:26 UTC) #22
Jói
//content/public LGTM
6 years, 9 months ago (2014-03-25 21:56:33 UTC) #23
Lei Zhang
https://codereview.chromium.org/185393012/diff/180001/chrome/browser/extensions/api/media_galleries/media_galleries_apitest.cc File chrome/browser/extensions/api/media_galleries/media_galleries_apitest.cc (right): https://codereview.chromium.org/185393012/diff/180001/chrome/browser/extensions/api/media_galleries/media_galleries_apitest.cc#newcode198 chrome/browser/extensions/api/media_galleries/media_galleries_apitest.cc:198: void MakeSingleFakeGallery(MediaGalleryPrefId* pref_id) { nit: Still find this annoying. ...
6 years, 9 months ago (2014-03-26 01:33:51 UTC) #24
vandebo (ex-Chrome)
lei: had to make a few tweaks for imported file systems if you want to ...
6 years, 9 months ago (2014-03-26 16:58:36 UTC) #25
vandebo (ex-Chrome)
The CQ bit was checked by vandebo@chromium.org
6 years, 9 months ago (2014-03-26 16:59:02 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vandebo@chromium.org/185393012/360001
6 years, 9 months ago (2014-03-26 17:00:04 UTC) #27
Lei Zhang
https://codereview.chromium.org/185393012/diff/360001/chrome/browser/media_galleries/imported_media_gallery_registry.cc File chrome/browser/media_galleries/imported_media_gallery_registry.cc (right): https://codereview.chromium.org/185393012/diff/360001/chrome/browser/media_galleries/imported_media_gallery_registry.cc#newcode232 chrome/browser/media_galleries/imported_media_gallery_registry.cc:232: if (!base::CreateTemporaryFile(&imported_root_)) You shouldn't be accessing the file system ...
6 years, 9 months ago (2014-03-26 17:41:30 UTC) #28
vandebo (ex-Chrome)
The CQ bit was unchecked by vandebo@chromium.org
6 years, 9 months ago (2014-03-26 17:44:40 UTC) #29
Lei Zhang
https://codereview.chromium.org/185393012/diff/360001/chrome/browser/media_galleries/fileapi/picasa_file_util.cc File chrome/browser/media_galleries/fileapi/picasa_file_util.cc (right): https://codereview.chromium.org/185393012/diff/360001/chrome/browser/media_galleries/fileapi/picasa_file_util.cc#newcode52 chrome/browser/media_galleries/fileapi/picasa_file_util.cc:52: std::vector<std::string> GetVirtualPathComponents( Might be nice to merge the 3 ...
6 years, 9 months ago (2014-03-26 17:50:10 UTC) #30
vandebo (ex-Chrome)
lei: please CQ if LG https://codereview.chromium.org/185393012/diff/360001/chrome/browser/media_galleries/fileapi/picasa_file_util.cc File chrome/browser/media_galleries/fileapi/picasa_file_util.cc (right): https://codereview.chromium.org/185393012/diff/360001/chrome/browser/media_galleries/fileapi/picasa_file_util.cc#newcode52 chrome/browser/media_galleries/fileapi/picasa_file_util.cc:52: std::vector<std::string> GetVirtualPathComponents( On 2014/03/26 ...
6 years, 9 months ago (2014-03-26 23:25:24 UTC) #31
Lei Zhang
lgtm++ https://codereview.chromium.org/185393012/diff/380001/chrome/browser/media_galleries/imported_media_gallery_registry.h File chrome/browser/media_galleries/imported_media_gallery_registry.h (right): https://codereview.chromium.org/185393012/diff/380001/chrome/browser/media_galleries/imported_media_gallery_registry.h#newcode40 chrome/browser/media_galleries/imported_media_gallery_registry.h:40: void Initialize(); nit: comment would be good.
6 years, 9 months ago (2014-03-26 23:32:45 UTC) #32
Lei Zhang
The CQ bit was checked by thestig@chromium.org
6 years, 9 months ago (2014-03-26 23:32:54 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vandebo@chromium.org/185393012/380001
6 years, 9 months ago (2014-03-26 23:34:22 UTC) #34
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-27 00:18:34 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on win_chromium_compile_dbg
6 years, 9 months ago (2014-03-27 00:18:35 UTC) #36
Lei Zhang
https://codereview.chromium.org/185393012/diff/380001/chrome/browser/media_galleries/fileapi/picasa_file_util.cc File chrome/browser/media_galleries/fileapi/picasa_file_util.cc (right): https://codereview.chromium.org/185393012/diff/380001/chrome/browser/media_galleries/fileapi/picasa_file_util.cc#newcode56 chrome/browser/media_galleries/fileapi/picasa_file_util.cc:56: base::FilePath root = imported_registry->ImportedRoot().Append("picasa"); Append -> AppendASCII, ditto elsewhere.
6 years, 9 months ago (2014-03-27 02:27:19 UTC) #37
vandebo (ex-Chrome)
https://codereview.chromium.org/185393012/diff/380001/chrome/browser/media_galleries/fileapi/picasa_file_util.cc File chrome/browser/media_galleries/fileapi/picasa_file_util.cc (right): https://codereview.chromium.org/185393012/diff/380001/chrome/browser/media_galleries/fileapi/picasa_file_util.cc#newcode56 chrome/browser/media_galleries/fileapi/picasa_file_util.cc:56: base::FilePath root = imported_registry->ImportedRoot().Append("picasa"); On 2014/03/27 02:27:20, Lei Zhang ...
6 years, 9 months ago (2014-03-27 05:39:07 UTC) #38
vandebo (ex-Chrome)
The CQ bit was checked by vandebo@chromium.org
6 years, 9 months ago (2014-03-27 05:39:57 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vandebo@chromium.org/185393012/400001
6 years, 9 months ago (2014-03-27 05:39:59 UTC) #40
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-27 06:08:34 UTC) #41
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=289181
6 years, 9 months ago (2014-03-27 06:08:35 UTC) #42
vandebo (ex-Chrome)
The CQ bit was checked by vandebo@chromium.org
6 years, 9 months ago (2014-03-27 06:33:10 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vandebo@chromium.org/185393012/420001
6 years, 9 months ago (2014-03-27 06:33:14 UTC) #44
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-27 08:00:17 UTC) #45
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
6 years, 9 months ago (2014-03-27 08:00:17 UTC) #46
vandebo (ex-Chrome)
The CQ bit was checked by vandebo@chromium.org
6 years, 9 months ago (2014-03-27 20:56:46 UTC) #47
vandebo (ex-Chrome)
The CQ bit was unchecked by vandebo@chromium.org
6 years, 9 months ago (2014-03-27 21:01:33 UTC) #48
vandebo (ex-Chrome)
The CQ bit was checked by vandebo@chromium.org
6 years, 9 months ago (2014-03-27 21:05:02 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vandebo@chromium.org/185393012/480001
6 years, 9 months ago (2014-03-27 21:12:17 UTC) #50
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-27 21:45:33 UTC) #51
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=58091
6 years, 9 months ago (2014-03-27 21:45:34 UTC) #52
vandebo (ex-Chrome)
The CQ bit was checked by vandebo@chromium.org
6 years, 9 months ago (2014-03-27 22:44:30 UTC) #53
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vandebo@chromium.org/185393012/480001
6 years, 9 months ago (2014-03-27 22:47:11 UTC) #54
Charlie Reis
content/public LGTM, since Jói, Justin, and Tom already approved.
6 years, 9 months ago (2014-03-27 22:47:41 UTC) #55
vandebo (ex-Chrome)
The CQ bit was unchecked by vandebo@chromium.org
6 years, 9 months ago (2014-03-28 16:08:35 UTC) #56
vandebo (ex-Chrome)
The CQ bit was checked by vandebo@chromium.org
6 years, 9 months ago (2014-03-28 16:08:47 UTC) #57
vandebo (ex-Chrome)
6 years, 9 months ago (2014-03-28 21:06:55 UTC) #58
Message was sent while issue was closed.
Committed patchset #18 manually as r260276 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698