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

Issue 377383002: Media Galleries: Access MTP devices by file ids rather than file paths. (Closed)

Created:
6 years, 5 months ago by Lei Zhang
Modified:
6 years, 5 months ago
Reviewers:
tommycli
CC:
chromium-reviews, vandebo (ex-Chrome), tzik, Lei Zhang, nhiroki, tommycli, Greg Billock, kinuko+fileapi
Project:
chromium
Visibility:
Public.

Description

Media Galleries: Access MTP devices by file ids rather than file paths. File paths can be very slow to access because finding a file by path requires O(N) metadata access to figure out which file id corresponds to a given name. BUG=385307 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=283732

Patch Set 1 #

Total comments: 10

Patch Set 2 : make sure MTPFileNode is single threaded #

Patch Set 3 : address comments #

Patch Set 4 : Use PendingTaskInfo #

Patch Set 5 : fix build #

Patch Set 6 : rebase #

Messages

Total messages: 18 (0 generated)
Lei Zhang
6 years, 5 months ago (2014-07-09 19:23:00 UTC) #1
tommycli
thestig: Seems legit. https://codereview.chromium.org/377383002/diff/1/chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.cc File chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.cc (right): https://codereview.chromium.org/377383002/diff/1/chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.cc#newcode296 chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.cc:296: uint32 cached_file_id; This block could be ...
6 years, 5 months ago (2014-07-09 21:48:31 UTC) #2
Lei Zhang
https://codereview.chromium.org/377383002/diff/1/chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.cc File chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.cc (right): https://codereview.chromium.org/377383002/diff/1/chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.cc#newcode296 chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.cc:296: uint32 cached_file_id; On 2014/07/09 21:48:31, tommycli wrote: > This ...
6 years, 5 months ago (2014-07-14 23:46:33 UTC) #3
Lei Zhang
See patch set 4.
6 years, 5 months ago (2014-07-16 03:37:35 UTC) #4
tommycli
lgtm I feel bad because my comments have caused the SLOC to increase rather than ...
6 years, 5 months ago (2014-07-16 16:29:52 UTC) #5
Lei Zhang
The CQ bit was checked by thestig@chromium.org
6 years, 5 months ago (2014-07-16 17:55:52 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thestig@chromium.org/377383002/120001
6 years, 5 months ago (2014-07-16 17:59:04 UTC) #7
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: ios_dbg_simulator on tryserver.chromium ...
6 years, 5 months ago (2014-07-17 00:04:43 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-17 02:45:42 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_gn_rel/builds/26551)
6 years, 5 months ago (2014-07-17 02:45:43 UTC) #10
Lei Zhang
The CQ bit was checked by thestig@chromium.org
6 years, 5 months ago (2014-07-17 03:53:21 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thestig@chromium.org/377383002/140001
6 years, 5 months ago (2014-07-17 03:55:10 UTC) #12
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_aosp on tryserver.chromium ...
6 years, 5 months ago (2014-07-17 04:45:23 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-17 04:48:58 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: android_aosp on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_aosp/builds/93438) android_chromium_gn_compile_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_chromium_gn_compile_rel/builds/23215) android_clang_dbg ...
6 years, 5 months ago (2014-07-17 04:48:59 UTC) #15
Lei Zhang
The CQ bit was checked by thestig@chromium.org
6 years, 5 months ago (2014-07-17 05:16:04 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thestig@chromium.org/377383002/160001
6 years, 5 months ago (2014-07-17 05:19:48 UTC) #17
commit-bot: I haz the power
6 years, 5 months ago (2014-07-17 09:55:39 UTC) #18
Message was sent while issue was closed.
Change committed as 283732

Powered by Google App Engine
This is Rietveld 408576698