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

Issue 19489006: Media Galleries: Move gallery name generation back to StorageMonitor. (Closed)

Created:
7 years, 5 months ago by Lei Zhang
Modified:
6 years, 9 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, tommycli, Greg Billock, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Media Galleries: Move gallery name generation back to StorageMonitor. The name generation is used by multiple consumers, so it is better to put it back where is most accessible. BUG=261350

Patch Set 1 : #

Patch Set 2 : #

Total comments: 7

Patch Set 3 : #

Total comments: 4

Patch Set 4 : add missing file #

Patch Set 5 : rebase #

Patch Set 6 : resolve conflict, add another missing file #

Patch Set 7 : fix win compile #

Patch Set 8 : fix win compile for reals #

Patch Set 9 : fix typos #

Patch Set 10 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+226 lines, -257 lines) Patch
M chrome/browser/extensions/api/media_galleries/media_galleries_apitest.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_private/media_galleries_eject_apitest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/media_galleries_private/media_galleries_private_apitest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/media_galleries_private/media_galleries_private_event_router.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -11 lines 0 comments Download
M chrome/browser/extensions/api/system_storage/storage_api_test_util.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/system_storage/storage_info_provider.cc View 1 2 3 4 5 6 7 8 9 1 chunk +9 lines, -4 lines 0 comments Download
M chrome/browser/media_galleries/media_file_system_registry_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/media_galleries/media_galleries_preferences.cc View 1 2 3 4 5 6 7 8 9 5 chunks +12 lines, -45 lines 0 comments Download
M chrome/browser/media_galleries/media_galleries_preferences_unittest.cc View 1 2 3 4 5 6 7 8 9 16 chunks +83 lines, -85 lines 0 comments Download
M chrome/browser/media_galleries/win/mtp_device_delegate_impl_win_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/storage_monitor/image_capture_device_manager.mm View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/storage_monitor/media_storage_util.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/storage_monitor/media_storage_util_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/storage_monitor/media_transfer_protocol_device_observer_linux.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/storage_monitor/media_transfer_protocol_device_observer_linux_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/storage_monitor/portable_device_watcher_win.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/storage_monitor/storage_info.h View 1 2 3 4 5 6 7 8 9 5 chunks +9 lines, -7 lines 0 comments Download
M chrome/browser/storage_monitor/storage_info.cc View 1 2 3 4 5 6 7 8 9 3 chunks +55 lines, -2 lines 0 comments Download
M chrome/browser/storage_monitor/storage_monitor.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -6 lines 0 comments Download
M chrome/browser/storage_monitor/storage_monitor_chromeos.cc View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/storage_monitor/storage_monitor_chromeos_unittest.cc View 1 2 3 4 5 6 7 8 9 7 chunks +0 lines, -7 lines 0 comments Download
M chrome/browser/storage_monitor/storage_monitor_linux.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/storage_monitor/storage_monitor_linux_unittest.cc View 1 2 3 4 5 6 7 8 9 7 chunks +0 lines, -8 lines 0 comments Download
M chrome/browser/storage_monitor/storage_monitor_mac.mm View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/storage_monitor/storage_monitor_mac_unittest.mm View 1 2 3 4 5 6 7 8 9 7 chunks +3 lines, -10 lines 0 comments Download
M chrome/browser/storage_monitor/storage_monitor_unittest.cc View 1 2 3 4 5 6 7 8 9 4 chunks +6 lines, -14 lines 0 comments Download
M chrome/browser/storage_monitor/storage_monitor_win_unittest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +9 lines, -12 lines 0 comments Download
M chrome/browser/storage_monitor/test_storage_monitor.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/storage_monitor/test_volume_mount_watcher_win.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/storage_monitor/volume_mount_watcher_win.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -3 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Lei Zhang
In r199264, we stopped setting StorageInfo's name field, but we are still using it in ...
7 years, 5 months ago (2013-07-23 07:00:14 UTC) #1
Lei Zhang
The end-to-end tests that should have caught this regression failed because they continued to set ...
7 years, 5 months ago (2013-07-23 07:03:31 UTC) #2
vandebo (ex-Chrome)
https://codereview.chromium.org/19489006/diff/27001/chrome/browser/extensions/api/media_galleries_private/media_galleries_eject_apitest.cc File chrome/browser/extensions/api/media_galleries_private/media_galleries_eject_apitest.cc (right): https://codereview.chromium.org/19489006/diff/27001/chrome/browser/extensions/api/media_galleries_private/media_galleries_eject_apitest.cc#newcode93 chrome/browser/extensions/api/media_galleries_private/media_galleries_eject_apitest.cc:93: base::ASCIIToUTF16(kDeviceName), base::string16(), Is this to make the devices distinguishable ...
7 years, 5 months ago (2013-07-23 23:28:55 UTC) #3
Lei Zhang
https://codereview.chromium.org/19489006/diff/27001/chrome/browser/extensions/api/media_galleries_private/media_galleries_eject_apitest.cc File chrome/browser/extensions/api/media_galleries_private/media_galleries_eject_apitest.cc (right): https://codereview.chromium.org/19489006/diff/27001/chrome/browser/extensions/api/media_galleries_private/media_galleries_eject_apitest.cc#newcode93 chrome/browser/extensions/api/media_galleries_private/media_galleries_eject_apitest.cc:93: base::ASCIIToUTF16(kDeviceName), base::string16(), On 2013/07/23 23:28:55, vandebo wrote: > Is ...
7 years, 5 months ago (2013-07-24 05:13:33 UTC) #4
Greg Billock
https://codereview.chromium.org/19489006/diff/46006/chrome/browser/extensions/api/media_galleries_private/media_galleries_private_event_router.cc File chrome/browser/extensions/api/media_galleries_private/media_galleries_private_event_router.cc (right): https://codereview.chromium.org/19489006/diff/46006/chrome/browser/extensions/api/media_galleries_private/media_galleries_private_event_router.cc#newcode90 chrome/browser/extensions/api/media_galleries_private/media_galleries_private_event_router.cc:90: details.device_name = base::UTF16ToUTF8(info.GetDisplayName(true)); This was the locus of the ...
7 years, 4 months ago (2013-07-29 18:37:01 UTC) #5
Lei Zhang
I think patch set 4 should work. Will rebase it in patch set 5 and ...
7 years, 4 months ago (2013-07-29 20:48:27 UTC) #6
Greg Billock
https://codereview.chromium.org/19489006/diff/46006/chrome/browser/extensions/api/media_galleries_private/media_galleries_private_event_router.cc File chrome/browser/extensions/api/media_galleries_private/media_galleries_private_event_router.cc (right): https://codereview.chromium.org/19489006/diff/46006/chrome/browser/extensions/api/media_galleries_private/media_galleries_private_event_router.cc#newcode90 chrome/browser/extensions/api/media_galleries_private/media_galleries_private_event_router.cc:90: details.device_name = base::UTF16ToUTF8(info.GetDisplayName(true)); On 2013/07/29 20:48:27, Lei Zhang wrote: ...
7 years, 4 months ago (2013-07-29 21:44:22 UTC) #7
Lei Zhang
On 2013/07/29 21:44:22, Greg Billock wrote: > https://codereview.chromium.org/19489006/diff/46006/chrome/browser/extensions/api/media_galleries_private/media_galleries_private_event_router.cc > File > chrome/browser/extensions/api/media_galleries_private/media_galleries_private_event_router.cc > (right): > ...
7 years, 4 months ago (2013-07-29 21:46:58 UTC) #8
Greg Billock
This is in chrome/browser/extensions. It can make use of c/b/media_galleries apis. On Mon, Jul 29, ...
7 years, 4 months ago (2013-07-29 23:32:51 UTC) #9
Lei Zhang
https://codereview.chromium.org/19489006/diff/46006/chrome/browser/extensions/api/media_galleries_private/media_galleries_private_event_router.cc File chrome/browser/extensions/api/media_galleries_private/media_galleries_private_event_router.cc (right): https://codereview.chromium.org/19489006/diff/46006/chrome/browser/extensions/api/media_galleries_private/media_galleries_private_event_router.cc#newcode90 chrome/browser/extensions/api/media_galleries_private/media_galleries_private_event_router.cc:90: details.device_name = base::UTF16ToUTF8(info.GetDisplayName(true)); On 2013/07/29 21:44:22, Greg Billock wrote: ...
7 years, 4 months ago (2013-07-30 02:39:55 UTC) #10
Lei Zhang
Patch set 8 should work on all platforms. The TestNameGeneration test failure is handled separately ...
7 years, 4 months ago (2013-07-30 22:29:11 UTC) #11
vandebo (ex-Chrome)
On 2013/07/30 22:29:11, Lei Zhang wrote: > Patch set 8 should work on all platforms. ...
6 years, 11 months ago (2014-01-08 20:01:24 UTC) #12
Lei Zhang
6 years, 11 months ago (2014-01-08 20:47:57 UTC) #13
On 2014/01/08 20:01:24, vandebo wrote:
> On 2013/07/30 22:29:11, Lei Zhang wrote:
> > Patch set 8 should work on all platforms. The TestNameGeneration test
failure
> is
> > handled separately in https://codereview.chromium.org/21302002/
> 
> Any particular reason this change went stale?

Nobody reviewed it and it got lonely.

Powered by Google App Engine
This is Rietveld 408576698