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

Issue 329643002: Media Galleries: Allow readding blacklisted iApps libraries. (Closed)

Created:
6 years, 6 months ago by tommycli
Modified:
6 years, 6 months ago
CC:
chromium-reviews, tzik, Lei Zhang, nhiroki, tommycli, Greg Billock, kinuko+fileapi
Visibility:
Public.

Description

Media Galleries: Allow re-adding blacklisted iApps libraries. Previously, when a user blacklisted an iPhoto/iTunes library, there was no way to get it back without editing the preferences file by hand. Now, when a user adds a directory under the iPhoto/iTunes library directory, it adds back the device library. BUG=375503 TEST=manual tested iTunes on Win Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276771

Patch Set 1 #

Total comments: 4

Patch Set 2 : Add test for adding back blacklisted gallery case #

Patch Set 3 : narrow down which folders imply itunes #

Patch Set 4 : narrow down folders which imply iphoto #

Total comments: 8

Patch Set 5 : #

Patch Set 6 : add a short unittest for the preferences lookup #

Total comments: 4

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -23 lines) Patch
M chrome/browser/media_galleries/fileapi/iapps_finder.h View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/media_galleries/fileapi/iapps_finder_impl.cc View 1 2 3 4 5 6 1 chunk +35 lines, -0 lines 0 comments Download
M chrome/browser/media_galleries/media_galleries_permission_controller.cc View 1 2 3 4 2 chunks +10 lines, -6 lines 0 comments Download
M chrome/browser/media_galleries/media_galleries_permission_controller_unittest.cc View 1 2 3 4 5 3 chunks +23 lines, -8 lines 0 comments Download
M chrome/browser/media_galleries/media_galleries_preferences.cc View 1 2 3 4 5 6 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/browser/media_galleries/media_galleries_preferences_unittest.cc View 1 2 3 4 5 3 chunks +30 lines, -9 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
tommycli
vandebo: ptal - tested working on Win, building for mac now
6 years, 6 months ago (2014-06-10 21:35:58 UTC) #1
vandebo (ex-Chrome)
https://codereview.chromium.org/329643002/diff/1/chrome/browser/media_galleries/fileapi/iapps_finder_impl.cc File chrome/browser/media_galleries/fileapi/iapps_finder_impl.cc (right): https://codereview.chromium.org/329643002/diff/1/chrome/browser/media_galleries/fileapi/iapps_finder_impl.cc#newcode62 chrome/browser/media_galleries/fileapi/iapps_finder_impl.cc:62: return (path == library_root) || library_root.IsParent(path); Probably don't want ...
6 years, 6 months ago (2014-06-10 21:57:17 UTC) #2
tommycli
vandebo: Added test, and narrowed scope of folders for both iTunes and iPhoto. I tested ...
6 years, 6 months ago (2014-06-10 23:59:06 UTC) #3
vandebo (ex-Chrome)
https://codereview.chromium.org/329643002/diff/60001/chrome/browser/media_galleries/media_galleries_permission_controller.cc File chrome/browser/media_galleries/media_galleries_permission_controller.cc (right): https://codereview.chromium.org/329643002/diff/60001/chrome/browser/media_galleries/media_galleries_permission_controller.cc#newcode291 chrome/browser/media_galleries/media_galleries_permission_controller.cc:291: if (web_contents_) { Is this needed? Why are the ...
6 years, 6 months ago (2014-06-11 16:40:56 UTC) #4
tommycli
added a unittest to m_g_preferences also, just covering the lookup code path https://codereview.chromium.org/329643002/diff/60001/chrome/browser/media_galleries/media_galleries_permission_controller.cc File chrome/browser/media_galleries/media_galleries_permission_controller.cc ...
6 years, 6 months ago (2014-06-11 18:17:56 UTC) #5
vandebo (ex-Chrome)
LGTM https://codereview.chromium.org/329643002/diff/100001/chrome/browser/media_galleries/fileapi/iapps_finder.h File chrome/browser/media_galleries/fileapi/iapps_finder.h (right): https://codereview.chromium.org/329643002/diff/100001/chrome/browser/media_galleries/fileapi/iapps_finder.h#newcode27 chrome/browser/media_galleries/fileapi/iapps_finder.h:27: // indicated by |device_id|. Given this description, I ...
6 years, 6 months ago (2014-06-11 18:36:46 UTC) #6
tommycli
https://codereview.chromium.org/329643002/diff/100001/chrome/browser/media_galleries/fileapi/iapps_finder.h File chrome/browser/media_galleries/fileapi/iapps_finder.h (right): https://codereview.chromium.org/329643002/diff/100001/chrome/browser/media_galleries/fileapi/iapps_finder.h#newcode27 chrome/browser/media_galleries/fileapi/iapps_finder.h:27: // indicated by |device_id|. On 2014/06/11 18:36:46, vandebo wrote: ...
6 years, 6 months ago (2014-06-11 19:26:39 UTC) #7
vandebo (ex-Chrome)
LGTM
6 years, 6 months ago (2014-06-11 19:27:56 UTC) #8
tommycli
The CQ bit was checked by tommycli@chromium.org
6 years, 6 months ago (2014-06-11 19:28:07 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommycli@chromium.org/329643002/120001
6 years, 6 months ago (2014-06-11 19:34:29 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_chromium_compile_dbg on tryserver.chromium ...
6 years, 6 months ago (2014-06-11 21:33:36 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-11 21:36:58 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/mac_chromium_compile_dbg/builds/31366) mac_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/mac_chromium_rel/builds/38021) win_chromium_compile_dbg ...
6 years, 6 months ago (2014-06-11 21:36:59 UTC) #13
tommycli
The CQ bit was checked by tommycli@chromium.org
6 years, 6 months ago (2014-06-11 21:38:21 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommycli@chromium.org/329643002/120001
6 years, 6 months ago (2014-06-11 21:39:39 UTC) #15
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_chromium_compile_dbg on tryserver.chromium ...
6 years, 6 months ago (2014-06-11 21:54:04 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-11 22:20:41 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_x64_rel/builds/19719)
6 years, 6 months ago (2014-06-11 22:20:42 UTC) #18
tommycli
The CQ bit was checked by tommycli@chromium.org
6 years, 6 months ago (2014-06-11 22:56:46 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommycli@chromium.org/329643002/120001
6 years, 6 months ago (2014-06-11 22:58:18 UTC) #20
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_chromium_compile_dbg on tryserver.chromium ...
6 years, 6 months ago (2014-06-11 23:07:14 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-11 23:08:28 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/mac_chromium_compile_dbg/builds/31450) mac_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/mac_chromium_rel/builds/38137)
6 years, 6 months ago (2014-06-11 23:08:29 UTC) #23
tommycli
The CQ bit was checked by tommycli@chromium.org
6 years, 6 months ago (2014-06-12 16:04:47 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommycli@chromium.org/329643002/120001
6 years, 6 months ago (2014-06-12 16:06:28 UTC) #25
commit-bot: I haz the power
6 years, 6 months ago (2014-06-12 19:32:31 UTC) #26
Message was sent while issue was closed.
Change committed as 276771

Powered by Google App Engine
This is Rietveld 408576698