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

Issue 10882039: Make the Linux System Monitor implementation track all devices (Closed)

Created:
8 years, 4 months ago by vandebo (ex-Chrome)
Modified:
8 years, 3 months ago
Reviewers:
Lei Zhang
CC:
chromium-reviews
Visibility:
Public.

Description

Make the Linux System Monitor implementation track all devices Add a few new functions to support media gallery and rename based on the new names in SystemMonitor BUG=144496 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=153980

Patch Set 1 #

Total comments: 2

Patch Set 2 : Checkpoint #

Patch Set 3 : Checkpoint #

Patch Set 4 : nits #

Total comments: 2

Patch Set 5 : Rebase #

Patch Set 6 : Fix move status #

Total comments: 24

Patch Set 7 : Address comments #

Total comments: 36

Patch Set 8 : Address comments #

Total comments: 2

Patch Set 9 : Fix bots #

Patch Set 10 : Address comments #

Total comments: 4

Patch Set 11 : Address comments #

Patch Set 12 : nit #

Patch Set 13 : Fix CrOS build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+646 lines, -308 lines) Patch
M chrome/browser/chrome_browser_main_linux.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chrome_browser_main_linux.cc View 1 3 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/media_gallery/media_storage_util.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/media_gallery/media_storage_util.cc View 1 2 3 4 5 6 7 3 chunks +3 lines, -3 lines 0 comments Download
A + chrome/browser/media_gallery/removable_device_notifications_linux.h View 1 2 3 4 5 6 7 8 5 chunks +64 lines, -38 lines 0 comments Download
A + chrome/browser/media_gallery/removable_device_notifications_linux.cc View 1 2 3 4 5 6 7 8 9 10 11 10 chunks +252 lines, -131 lines 0 comments Download
A + chrome/browser/media_gallery/removable_device_notifications_linux_unittest.cc View 1 2 3 4 5 6 7 8 14 chunks +312 lines, -121 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
vandebo (ex-Chrome)
FYI
8 years, 4 months ago (2012-08-24 21:01:09 UTC) #1
Lei Zhang
https://chromiumcodereview.appspot.com/10882039/diff/1/chrome/browser/media_gallery/disk_mount_watcher_linux.cc File chrome/browser/media_gallery/disk_mount_watcher_linux.cc (right): https://chromiumcodereview.appspot.com/10882039/diff/1/chrome/browser/media_gallery/disk_mount_watcher_linux.cc#newcode208 chrome/browser/media_gallery/disk_mount_watcher_linux.cc:208: if (usb) { FWIW, you can do: const char* ...
8 years, 4 months ago (2012-08-25 01:22:19 UTC) #2
vandebo (ex-Chrome)
https://chromiumcodereview.appspot.com/10882039/diff/1/chrome/browser/media_gallery/disk_mount_watcher_linux.cc File chrome/browser/media_gallery/disk_mount_watcher_linux.cc (right): https://chromiumcodereview.appspot.com/10882039/diff/1/chrome/browser/media_gallery/disk_mount_watcher_linux.cc#newcode208 chrome/browser/media_gallery/disk_mount_watcher_linux.cc:208: if (usb) { On 2012/08/25 01:22:19, Lei Zhang wrote: ...
8 years, 3 months ago (2012-08-27 19:42:38 UTC) #3
Lei Zhang
https://chromiumcodereview.appspot.com/10882039/diff/10001/chrome/browser/media_gallery/media_storage_util.cc File chrome/browser/media_gallery/media_storage_util.cc (right): https://chromiumcodereview.appspot.com/10882039/diff/10001/chrome/browser/media_gallery/media_storage_util.cc#newcode105 chrome/browser/media_gallery/media_storage_util.cc:105: std::string prefix = device_id.substr(0, prefix_length + 1); You'll need ...
8 years, 3 months ago (2012-08-27 23:17:15 UTC) #4
vandebo (ex-Chrome)
https://chromiumcodereview.appspot.com/10882039/diff/10001/chrome/browser/media_gallery/media_storage_util.cc File chrome/browser/media_gallery/media_storage_util.cc (right): https://chromiumcodereview.appspot.com/10882039/diff/10001/chrome/browser/media_gallery/media_storage_util.cc#newcode105 chrome/browser/media_gallery/media_storage_util.cc:105: std::string prefix = device_id.substr(0, prefix_length + 1); On 2012/08/27 ...
8 years, 3 months ago (2012-08-27 23:31:11 UTC) #5
Lei Zhang
https://chromiumcodereview.appspot.com/10882039/diff/7020/chrome/browser/media_gallery/removable_device_notifications_linux.cc File chrome/browser/media_gallery/removable_device_notifications_linux.cc (right): https://chromiumcodereview.appspot.com/10882039/diff/7020/chrome/browser/media_gallery/removable_device_notifications_linux.cc#newcode71 chrome/browser/media_gallery/removable_device_notifications_linux.cc:71: void ReadMtab(FilePath mtab_path, Why not just keep this as ...
8 years, 3 months ago (2012-08-28 00:05:04 UTC) #6
vandebo (ex-Chrome)
https://chromiumcodereview.appspot.com/10882039/diff/7020/chrome/browser/media_gallery/removable_device_notifications_linux.cc File chrome/browser/media_gallery/removable_device_notifications_linux.cc (right): https://chromiumcodereview.appspot.com/10882039/diff/7020/chrome/browser/media_gallery/removable_device_notifications_linux.cc#newcode71 chrome/browser/media_gallery/removable_device_notifications_linux.cc:71: void ReadMtab(FilePath mtab_path, On 2012/08/28 00:05:04, Lei Zhang wrote: ...
8 years, 3 months ago (2012-08-28 00:33:32 UTC) #7
Lei Zhang
https://chromiumcodereview.appspot.com/10882039/diff/28/chrome/browser/media_gallery/removable_device_notifications_linux.cc File chrome/browser/media_gallery/removable_device_notifications_linux.cc (right): https://chromiumcodereview.appspot.com/10882039/diff/28/chrome/browser/media_gallery/removable_device_notifications_linux.cc#newcode216 chrome/browser/media_gallery/removable_device_notifications_linux.cc:216: const char* value = udev_device_get_sysattr_value(parent_device, Try this on |device| ...
8 years, 3 months ago (2012-08-28 07:55:30 UTC) #8
vandebo (ex-Chrome)
https://chromiumcodereview.appspot.com/10882039/diff/28/chrome/browser/media_gallery/removable_device_notifications_linux.cc File chrome/browser/media_gallery/removable_device_notifications_linux.cc (right): https://chromiumcodereview.appspot.com/10882039/diff/28/chrome/browser/media_gallery/removable_device_notifications_linux.cc#newcode216 chrome/browser/media_gallery/removable_device_notifications_linux.cc:216: const char* value = udev_device_get_sysattr_value(parent_device, On 2012/08/28 07:55:30, Lei ...
8 years, 3 months ago (2012-08-28 18:59:30 UTC) #9
Lei Zhang
Mostly good. Though I really dislike using map::operator[] for reading for the reasons below. https://chromiumcodereview.appspot.com/10882039/diff/28/chrome/browser/media_gallery/removable_device_notifications_linux.cc ...
8 years, 3 months ago (2012-08-28 20:49:03 UTC) #10
vandebo (ex-Chrome)
https://chromiumcodereview.appspot.com/10882039/diff/28/chrome/browser/media_gallery/removable_device_notifications_linux.cc File chrome/browser/media_gallery/removable_device_notifications_linux.cc (right): https://chromiumcodereview.appspot.com/10882039/diff/28/chrome/browser/media_gallery/removable_device_notifications_linux.cc#newcode273 chrome/browser/media_gallery/removable_device_notifications_linux.cc:273: if (type == MediaStorageUtil::USB_MTP) On 2012/08/28 20:49:04, Lei Zhang ...
8 years, 3 months ago (2012-08-28 21:25:26 UTC) #11
Lei Zhang
https://chromiumcodereview.appspot.com/10882039/diff/28/chrome/browser/media_gallery/removable_device_notifications_linux.cc File chrome/browser/media_gallery/removable_device_notifications_linux.cc (right): https://chromiumcodereview.appspot.com/10882039/diff/28/chrome/browser/media_gallery/removable_device_notifications_linux.cc#newcode412 chrome/browser/media_gallery/removable_device_notifications_linux.cc:412: const FilePath& mount_point = mount_priority_map_[*it].begin()->first; On 2012/08/28 21:25:26, vandebo ...
8 years, 3 months ago (2012-08-28 23:22:33 UTC) #12
vandebo (ex-Chrome)
https://chromiumcodereview.appspot.com/10882039/diff/28/chrome/browser/media_gallery/removable_device_notifications_linux.cc File chrome/browser/media_gallery/removable_device_notifications_linux.cc (right): https://chromiumcodereview.appspot.com/10882039/diff/28/chrome/browser/media_gallery/removable_device_notifications_linux.cc#newcode412 chrome/browser/media_gallery/removable_device_notifications_linux.cc:412: const FilePath& mount_point = mount_priority_map_[*it].begin()->first; Changed all instances (here ...
8 years, 3 months ago (2012-08-29 00:20:12 UTC) #13
Lei Zhang
lgtm https://chromiumcodereview.appspot.com/10882039/diff/24003/chrome/browser/media_gallery/removable_device_notifications_linux.cc File chrome/browser/media_gallery/removable_device_notifications_linux.cc (right): https://chromiumcodereview.appspot.com/10882039/diff/24003/chrome/browser/media_gallery/removable_device_notifications_linux.cc#newcode317 chrome/browser/media_gallery/removable_device_notifications_linux.cc:317: current != current.DirName()) { On 2012/08/29 00:20:12, vandebo ...
8 years, 3 months ago (2012-08-29 00:22:31 UTC) #14
vandebo (ex-Chrome)
https://chromiumcodereview.appspot.com/10882039/diff/24003/chrome/browser/media_gallery/removable_device_notifications_linux.cc File chrome/browser/media_gallery/removable_device_notifications_linux.cc (right): https://chromiumcodereview.appspot.com/10882039/diff/24003/chrome/browser/media_gallery/removable_device_notifications_linux.cc#newcode317 chrome/browser/media_gallery/removable_device_notifications_linux.cc:317: current != current.DirName()) { On 2012/08/29 00:22:31, Lei Zhang ...
8 years, 3 months ago (2012-08-29 00:29:15 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vandebo@chromium.org/10882039/28004
8 years, 3 months ago (2012-08-29 00:31:41 UTC) #16
commit-bot: I haz the power
Try job failure for 10882039-28004 (retry) on linux_chromeos for step "compile" (clobber build). It's a ...
8 years, 3 months ago (2012-08-29 01:10:30 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vandebo@chromium.org/10882039/24015
8 years, 3 months ago (2012-08-29 05:29:41 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/10882039/24017
8 years, 3 months ago (2012-08-29 06:01:41 UTC) #19
commit-bot: I haz the power
Try job failure for 10882039-24017 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 3 months ago (2012-08-29 07:56:45 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vandebo@chromium.org/10882039/24017
8 years, 3 months ago (2012-08-29 16:52:34 UTC) #21
commit-bot: I haz the power
Try job failure for 10882039-24017 (retry) on linux_rel for step "interactive_ui_tests". It's a second try, ...
8 years, 3 months ago (2012-08-29 18:38:39 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vandebo@chromium.org/10882039/24017
8 years, 3 months ago (2012-08-29 18:40:18 UTC) #23
commit-bot: I haz the power
8 years, 3 months ago (2012-08-29 20:34:45 UTC) #24
Try job failure for 10882039-24017 (retry) on linux_rel for step
"interactive_ui_tests".
It's a second try, previously, steps "nacl_integration, interactive_ui_tests,
browser_tests, sync_integration_tests" failed.
http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&...

Powered by Google App Engine
This is Rietveld 408576698