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

Issue 9560008: Implement Linux media notifier. (Closed)

Created:
8 years, 9 months ago by Lei Zhang
Modified:
8 years, 9 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Implement Linux media notifier. BUG=110400 TEST=included. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=125361

Patch Set 1 #

Patch Set 2 : with tests #

Total comments: 13

Patch Set 3 : fix easy stuff #

Patch Set 4 : #

Total comments: 16

Patch Set 5 : #

Patch Set 6 : remove more mac bits #

Patch Set 7 : Use FilePathWatcher #

Patch Set 8 : address comments #

Total comments: 4

Patch Set 9 : nits #

Patch Set 10 : nits #

Total comments: 6

Patch Set 11 : call init method from ctor #

Total comments: 1

Patch Set 12 : add init method and call it from outside the ctor #

Patch Set 13 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+701 lines, -1 line) Patch
M content/browser/browser_main_loop.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -0 lines 0 comments Download
M content/browser/browser_main_loop.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +13 lines, -1 line 0 comments Download
A content/browser/media_device_notifications_linux.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +113 lines, -0 lines 0 comments Download
A content/browser/media_device_notifications_linux.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +233 lines, -0 lines 0 comments Download
A content/browser/media_device_notifications_linux_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +335 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
Lei Zhang
Still figuring out this unit test business, but here's the CL which I think is ...
8 years, 9 months ago (2012-03-01 01:30:04 UTC) #1
Lei Zhang
PTAL
8 years, 9 months ago (2012-03-01 08:21:11 UTC) #2
vandebo (ex-Chrome)
http://codereview.chromium.org/9560008/diff/6001/content/browser/media_device_notifications_linux.cc File content/browser/media_device_notifications_linux.cc (right): http://codereview.chromium.org/9560008/diff/6001/content/browser/media_device_notifications_linux.cc#newcode135 content/browser/media_device_notifications_linux.cc:135: if (ProcessInotifyEvent(event)) maybe add a DCHECK(bytes_processed + event_size <= ...
8 years, 9 months ago (2012-03-02 23:47:35 UTC) #3
Lei Zhang
Fixed the easy bits. Will address remaining comments in next patch set. http://codereview.chromium.org/9560008/diff/6001/content/browser/media_device_notifications_linux.cc File content/browser/media_device_notifications_linux.cc ...
8 years, 9 months ago (2012-03-03 02:28:07 UTC) #4
Lei Zhang
PTAL at patch set 4. http://codereview.chromium.org/9560008/diff/6001/content/browser/media_device_notifications_linux.cc File content/browser/media_device_notifications_linux.cc (right): http://codereview.chromium.org/9560008/diff/6001/content/browser/media_device_notifications_linux.cc#newcode176 content/browser/media_device_notifications_linux.cc:176: std::set<MountPoint> seen_mount_points; On 2012/03/02 ...
8 years, 9 months ago (2012-03-05 23:14:32 UTC) #5
jam
https://chromiumcodereview.appspot.com/9560008/diff/23002/content/browser/media_device_notifications_linux.h File content/browser/media_device_notifications_linux.h (right): https://chromiumcodereview.appspot.com/9560008/diff/23002/content/browser/media_device_notifications_linux.h#newcode28 content/browser/media_device_notifications_linux.h:28: public base::RefCounted<MediaDeviceNotificationsLinux> { i think you want RefCountedThreadSafe?
8 years, 9 months ago (2012-03-05 23:31:52 UTC) #6
Lei Zhang
Also removed some Mac device notifier bits that sneaked in. https://chromiumcodereview.appspot.com/9560008/diff/23002/content/browser/media_device_notifications_linux.h File content/browser/media_device_notifications_linux.h (right): https://chromiumcodereview.appspot.com/9560008/diff/23002/content/browser/media_device_notifications_linux.h#newcode28 ...
8 years, 9 months ago (2012-03-05 23:44:35 UTC) #7
vandebo (ex-Chrome)
http://codereview.chromium.org/9560008/diff/23002/content/browser/browser_main_loop.cc File content/browser/browser_main_loop.cc (right): http://codereview.chromium.org/9560008/diff/23002/content/browser/browser_main_loop.cc#newcode605 content/browser/browser_main_loop.cc:605: const FilePath kDefaultMtabPath("/etc/mtab"); Random thought - does this work ...
8 years, 9 months ago (2012-03-06 00:41:40 UTC) #8
Lei Zhang
https://chromiumcodereview.appspot.com/9560008/diff/23002/content/browser/browser_main_loop.cc File content/browser/browser_main_loop.cc (right): https://chromiumcodereview.appspot.com/9560008/diff/23002/content/browser/browser_main_loop.cc#newcode605 content/browser/browser_main_loop.cc:605: const FilePath kDefaultMtabPath("/etc/mtab"); On 2012/03/06 00:41:40, vandebo wrote: > ...
8 years, 9 months ago (2012-03-06 19:00:24 UTC) #9
vandebo (ex-Chrome)
LGTM https://chromiumcodereview.appspot.com/9560008/diff/35003/content/browser/media_device_notifications_linux.cc File content/browser/media_device_notifications_linux.cc (right): https://chromiumcodereview.appspot.com/9560008/diff/35003/content/browser/media_device_notifications_linux.cc#newcode180 content/browser/media_device_notifications_linux.cc:180: bool MediaDeviceNotificationsLinux::IsNewDeviceAMediaDevice( nit: IsMediaDevice? https://chromiumcodereview.appspot.com/9560008/diff/35003/content/browser/media_device_notifications_linux.cc#newcode192 content/browser/media_device_notifications_linux.cc:192: *device_id = ...
8 years, 9 months ago (2012-03-06 19:36:14 UTC) #10
Lei Zhang
jam: OWNERS review please. https://chromiumcodereview.appspot.com/9560008/diff/35003/content/browser/media_device_notifications_linux.cc File content/browser/media_device_notifications_linux.cc (right): https://chromiumcodereview.appspot.com/9560008/diff/35003/content/browser/media_device_notifications_linux.cc#newcode180 content/browser/media_device_notifications_linux.cc:180: bool MediaDeviceNotificationsLinux::IsNewDeviceAMediaDevice( On 2012/03/06 19:36:14, ...
8 years, 9 months ago (2012-03-06 20:23:16 UTC) #11
jam
http://codereview.chromium.org/9560008/diff/33011/content/browser/browser_main_loop.cc File content/browser/browser_main_loop.cc (right): http://codereview.chromium.org/9560008/diff/33011/content/browser/browser_main_loop.cc#newcode7 content/browser/browser_main_loop.cc:7: #include <string> nit: no need. i understand you're adding ...
8 years, 9 months ago (2012-03-06 21:21:37 UTC) #12
Lei Zhang
https://chromiumcodereview.appspot.com/9560008/diff/33011/content/browser/browser_main_loop.cc File content/browser/browser_main_loop.cc (right): https://chromiumcodereview.appspot.com/9560008/diff/33011/content/browser/browser_main_loop.cc#newcode7 content/browser/browser_main_loop.cc:7: #include <string> On 2012/03/06 21:21:38, John Abd-El-Malek wrote: > ...
8 years, 9 months ago (2012-03-06 21:36:50 UTC) #13
jam
https://chromiumcodereview.appspot.com/9560008/diff/33011/content/browser/browser_main_loop.cc File content/browser/browser_main_loop.cc (right): https://chromiumcodereview.appspot.com/9560008/diff/33011/content/browser/browser_main_loop.cc#newcode603 content/browser/browser_main_loop.cc:603: BrowserThread::FILE, FROM_HERE, On 2012/03/06 21:36:50, Lei Zhang wrote: > ...
8 years, 9 months ago (2012-03-06 22:22:11 UTC) #14
Lei Zhang
https://chromiumcodereview.appspot.com/9560008/diff/33011/content/browser/browser_main_loop.cc File content/browser/browser_main_loop.cc (right): https://chromiumcodereview.appspot.com/9560008/diff/33011/content/browser/browser_main_loop.cc#newcode603 content/browser/browser_main_loop.cc:603: BrowserThread::FILE, FROM_HERE, On 2012/03/06 22:22:11, John Abd-El-Malek wrote: > ...
8 years, 9 months ago (2012-03-06 23:23:42 UTC) #15
jam
lgtm
8 years, 9 months ago (2012-03-07 01:38:20 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/9560008/22020
8 years, 9 months ago (2012-03-07 01:42:26 UTC) #17
commit-bot: I haz the power
Try job failure for 9560008-22020 on linux_clang for step "update". http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_clang&number=4959 Step "update" is always ...
8 years, 9 months ago (2012-03-07 01:46:28 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thestig@chromium.org/9560008/35012
8 years, 9 months ago (2012-03-07 06:01:17 UTC) #19
commit-bot: I haz the power
8 years, 9 months ago (2012-03-07 07:34:53 UTC) #20
Change committed as 125361

Powered by Google App Engine
This is Rietveld 408576698