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

Issue 11363153: [Media Gallery][Linux] Improve device media gallery names. (Closed)

Created:
8 years, 1 month ago by kmadhusu
Modified:
8 years, 1 month ago
Reviewers:
Lei Zhang
CC:
chromium-reviews
Visibility:
Public.

Description

[Media Gallery][Linux] Improve device media gallery names. <Device_storage_size> <Selected_sub_folder_gallery_name> <Device Label> <(VendorName, ModelName)> Sample gallery names: (1) 1GB TEST_USB (2) 4GB DCIM - RED_USB (3) 8KB PHOTOS - ABCD-0999 (TESTCOMPANY, A101) Rebased against codereview.chromium.org/11366144/ BUG=159671, 158600 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=168063

Patch Set 1 #

Patch Set 2 : Add {Vendor, Model} along with UUID details. #

Total comments: 6

Patch Set 3 : Addressed review comments #

Patch Set 4 : Removed UDISKS related code #

Total comments: 6

Patch Set 5 : Addressed review comments #

Total comments: 6

Patch Set 6 : Addressed comments. #

Total comments: 2

Patch Set 7 : Addressed review comments #

Total comments: 10

Patch Set 8 : Addressed review comments. #

Patch Set 9 : '' #

Patch Set 10 : Fix linux_clang compile error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+169 lines, -57 lines) Patch
M chrome/browser/system_monitor/media_storage_util.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/system_monitor/removable_device_notifications_linux.h View 1 2 3 4 5 6 7 8 9 3 chunks +14 lines, -5 lines 0 comments Download
M chrome/browser/system_monitor/removable_device_notifications_linux.cc View 1 2 3 4 5 6 7 8 9 12 chunks +82 lines, -33 lines 0 comments Download
M chrome/browser/system_monitor/removable_device_notifications_linux_unittest.cc View 1 2 3 4 5 8 chunks +72 lines, -18 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
kmadhusu
8 years, 1 month ago (2012-11-09 01:17:53 UTC) #1
Lei Zhang
https://codereview.chromium.org/11363153/diff/2001/chrome/browser/system_monitor/removable_device_notifications_linux.cc File chrome/browser/system_monitor/removable_device_notifications_linux.cc (right): https://codereview.chromium.org/11363153/diff/2001/chrome/browser/system_monitor/removable_device_notifications_linux.cc#newcode155 chrome/browser/system_monitor/removable_device_notifications_linux.cc:155: // If the UDISKS_PARTITION_SIZE property is set, use it ...
8 years, 1 month ago (2012-11-09 04:51:22 UTC) #2
kmadhusu
Addressed review comments. PTAL. Thanks. https://codereview.chromium.org/11363153/diff/2001/chrome/browser/system_monitor/removable_device_notifications_linux.cc File chrome/browser/system_monitor/removable_device_notifications_linux.cc (right): https://codereview.chromium.org/11363153/diff/2001/chrome/browser/system_monitor/removable_device_notifications_linux.cc#newcode155 chrome/browser/system_monitor/removable_device_notifications_linux.cc:155: // If the UDISKS_PARTITION_SIZE ...
8 years, 1 month ago (2012-11-09 19:17:00 UTC) #3
kmadhusu
Addressed review comments. PTAL. Thanks.
8 years, 1 month ago (2012-11-10 03:23:39 UTC) #4
kmadhusu
Removed UDISKS related code.
8 years, 1 month ago (2012-11-10 03:50:51 UTC) #5
Lei Zhang
https://codereview.chromium.org/11363153/diff/2006/chrome/browser/system_monitor/removable_device_notifications_linux.cc File chrome/browser/system_monitor/removable_device_notifications_linux.cc (right): https://codereview.chromium.org/11363153/diff/2006/chrome/browser/system_monitor/removable_device_notifications_linux.cc#newcode172 chrome/browser/system_monitor/removable_device_notifications_linux.cc:172: device_label = GetUdevDevicePropertyValue(device, kFsUUID); What are the chances that ...
8 years, 1 month ago (2012-11-12 08:01:39 UTC) #6
kmadhusu
Addressed review comments. PTAL. Thanks. https://codereview.chromium.org/11363153/diff/2006/chrome/browser/system_monitor/removable_device_notifications_linux.cc File chrome/browser/system_monitor/removable_device_notifications_linux.cc (right): https://codereview.chromium.org/11363153/diff/2006/chrome/browser/system_monitor/removable_device_notifications_linux.cc#newcode172 chrome/browser/system_monitor/removable_device_notifications_linux.cc:172: device_label = GetUdevDevicePropertyValue(device, kFsUUID); ...
8 years, 1 month ago (2012-11-12 19:56:19 UTC) #7
Lei Zhang
https://codereview.chromium.org/11363153/diff/15001/chrome/browser/system_monitor/removable_device_notifications_linux.cc File chrome/browser/system_monitor/removable_device_notifications_linux.cc (right): https://codereview.chromium.org/11363153/diff/15001/chrome/browser/system_monitor/removable_device_notifications_linux.cc#newcode153 chrome/browser/system_monitor/removable_device_notifications_linux.cc:153: // sysfs provides the device size value, which is ...
8 years, 1 month ago (2012-11-13 01:16:12 UTC) #8
Lei Zhang
https://chromiumcodereview.appspot.com/11363153/diff/10002/chrome/browser/system_monitor/removable_device_notifications_linux.cc File chrome/browser/system_monitor/removable_device_notifications_linux.cc (right): https://chromiumcodereview.appspot.com/11363153/diff/10002/chrome/browser/system_monitor/removable_device_notifications_linux.cc#newcode165 chrome/browser/system_monitor/removable_device_notifications_linux.cc:165: total_size_in_bytes * 512 : 0; Oh, it's probably good ...
8 years, 1 month ago (2012-11-13 03:35:07 UTC) #9
Lei Zhang
BTW, statvfs() works fine for me. I think the only catch is the file system ...
8 years, 1 month ago (2012-11-13 05:04:34 UTC) #10
kmadhusu
On 2012/11/13 05:04:34, Lei Zhang wrote: > BTW, statvfs() works fine for me. I think ...
8 years, 1 month ago (2012-11-13 17:47:37 UTC) #11
kmadhusu
http://codereview.chromium.org/11363153/diff/15001/chrome/browser/system_monitor/removable_device_notifications_linux.cc File chrome/browser/system_monitor/removable_device_notifications_linux.cc (right): http://codereview.chromium.org/11363153/diff/15001/chrome/browser/system_monitor/removable_device_notifications_linux.cc#newcode153 chrome/browser/system_monitor/removable_device_notifications_linux.cc:153: // sysfs provides the device size value, which is ...
8 years, 1 month ago (2012-11-13 17:47:44 UTC) #12
Lei Zhang
http://codereview.chromium.org/11363153/diff/8007/chrome/browser/system_monitor/removable_device_notifications_linux.cc File chrome/browser/system_monitor/removable_device_notifications_linux.cc (right): http://codereview.chromium.org/11363153/diff/8007/chrome/browser/system_monitor/removable_device_notifications_linux.cc#newcode167 chrome/browser/system_monitor/removable_device_notifications_linux.cc:167: return (total_size_in_bytes * 512 <= kuint64max) ? this is ...
8 years, 1 month ago (2012-11-13 20:35:04 UTC) #13
kmadhusu
http://codereview.chromium.org/11363153/diff/8007/chrome/browser/system_monitor/removable_device_notifications_linux.cc File chrome/browser/system_monitor/removable_device_notifications_linux.cc (right): http://codereview.chromium.org/11363153/diff/8007/chrome/browser/system_monitor/removable_device_notifications_linux.cc#newcode167 chrome/browser/system_monitor/removable_device_notifications_linux.cc:167: return (total_size_in_bytes * 512 <= kuint64max) ? On 2012/11/13 ...
8 years, 1 month ago (2012-11-13 21:57:27 UTC) #14
Lei Zhang
lgtm with nit below: http://codereview.chromium.org/11363153/diff/8007/chrome/browser/system_monitor/removable_device_notifications_linux.h File chrome/browser/system_monitor/removable_device_notifications_linux.h (right): http://codereview.chromium.org/11363153/diff/8007/chrome/browser/system_monitor/removable_device_notifications_linux.h#newcode63 chrome/browser/system_monitor/removable_device_notifications_linux.h:63: uint64 GetStorageSize(const std::string& location); On ...
8 years, 1 month ago (2012-11-13 22:17:49 UTC) #15
kmadhusu
http://codereview.chromium.org/11363153/diff/8007/chrome/browser/system_monitor/removable_device_notifications_linux.h File chrome/browser/system_monitor/removable_device_notifications_linux.h (right): http://codereview.chromium.org/11363153/diff/8007/chrome/browser/system_monitor/removable_device_notifications_linux.h#newcode63 chrome/browser/system_monitor/removable_device_notifications_linux.h:63: uint64 GetStorageSize(const std::string& location); On 2012/11/13 22:17:49, Lei Zhang ...
8 years, 1 month ago (2012-11-13 23:05:31 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kmadhusu@chromium.org/11363153/16001
8 years, 1 month ago (2012-11-15 07:39:41 UTC) #17
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
8 years, 1 month ago (2012-11-15 08:11:05 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kmadhusu@chromium.org/11363153/30001
8 years, 1 month ago (2012-11-15 20:45:56 UTC) #19
commit-bot: I haz the power
8 years, 1 month ago (2012-11-15 22:34:43 UTC) #20
Change committed as 168063

Powered by Google App Engine
This is Rietveld 408576698