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

Issue 2482463002: Remove DeviceMonitorLinux::WillDestroyCurrentMessageLoop(). (Closed)

Created:
4 years, 1 month ago by fdoray
Modified:
4 years, 1 month ago
CC:
achuith+watch_chromium.org, alemate+watch_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, davemoore+watch_chromium.org, extensions-reviews_chromium.org, oshima+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove DeviceMonitorLinux::WillDestroyCurrentMessageLoop(). The FILE thread will soon be migrated to TaskScheduler which doesn't support MessageLoop destruction observers. DeviceMonitorLinux::WillDestroyCurrentMessageLoop() notified 3 observers that the DeviceMonitorLinux MessageLoop was being destroyed. Each observer used this notification to destroy itself. - InputServiceLinuxImpl: This is now a leaky LazyInstance which is never destroyed. - HidServiceLinux::FileThreadHelper: This is now destroyed by posting a delete task to the FILE thread when HidServiceLinux::Shutdown is called. HidServiceLinux::Shutdown is called from BrowserProcessImpl::StartTearDown() which is called before the FILE thread is teared down. - UsbServiceLinux::FileThreadHelper: Same pattern as HidServiceLinux::FileThreadHelper. BUG=650723 Committed: https://crrev.com/3b9a7a6338f1c5f393d2201f16839eb072d3c277 Cr-Commit-Position: refs/heads/master@{#431564}

Patch Set 1 #

Patch Set 2 : self-review #

Patch Set 3 : self-review #

Patch Set 4 : fix test error - MockHidService #

Patch Set 5 : fix chromeos build error #

Patch Set 6 : Fix ChromeOS build error #

Total comments: 4

Patch Set 7 : CR achuithb #24 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+220 lines, -113 lines) Patch
M chrome/browser/browser_process_impl.cc View 1 2 5 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/chrome_device_client.h View 1 2 2 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/chrome_device_client.cc View 1 2 2 chunks +15 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/device/input_service_test_helper.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/bluetooth_host_pairing_browsertest.cc View 1 2 3 4 5 6 5 chunks +12 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/login/hid_detection_browsertest.cc View 1 2 3 4 5 6 4 chunks +11 lines, -7 lines 0 comments Download
M device/base/device_monitor_linux.h View 4 chunks +2 lines, -8 lines 0 comments Download
M device/base/device_monitor_linux.cc View 2 chunks +0 lines, -7 lines 0 comments Download
M device/hid/hid_service.h View 3 chunks +11 lines, -1 line 0 comments Download
M device/hid/hid_service.cc View 1 2 chunks +11 lines, -2 lines 0 comments Download
M device/hid/hid_service_linux.h View 2 chunks +3 lines, -1 line 0 comments Download
M device/hid/hid_service_linux.cc View 4 chunks +24 lines, -22 lines 0 comments Download
M device/hid/input_service_linux.h View 1 2 chunks +11 lines, -3 lines 0 comments Download
M device/hid/input_service_linux.cc View 6 chunks +12 lines, -15 lines 0 comments Download
M device/hid/mock_hid_service.cc View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M device/test/test_device_client.h View 1 chunk +2 lines, -0 lines 0 comments Download
M device/test/test_device_client.cc View 1 chunk +6 lines, -1 line 0 comments Download
M device/usb/mock_usb_service.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M device/usb/usb_service.h View 1 5 3 chunks +10 lines, -2 lines 0 comments Download
M device/usb/usb_service.cc View 1 2 chunks +10 lines, -0 lines 0 comments Download
M device/usb/usb_service_linux.h View 3 chunks +4 lines, -2 lines 0 comments Download
M device/usb/usb_service_linux.cc View 1 4 chunks +31 lines, -26 lines 0 comments Download
M extensions/shell/browser/shell_browser_main_parts.cc View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M extensions/shell/browser/shell_device_client.h View 1 2 2 chunks +8 lines, -1 line 0 comments Download
M extensions/shell/browser/shell_device_client.cc View 1 2 2 chunks +15 lines, -2 lines 0 comments Download

Messages

Total messages: 35 (24 generated)
fdoray
PTAL
4 years, 1 month ago (2016-11-08 15:25:44 UTC) #18
Ken Rockot(use gerrit already)
Sorry for the delay, I missed this CL. LGTM
4 years, 1 month ago (2016-11-10 17:05:12 UTC) #19
fdoray
achuith@: Please review changes in chrome/browser/chromeos/ sky@: Please review changes in chrome/browser/browser_process_impl.cc Thanks!
4 years, 1 month ago (2016-11-10 17:09:29 UTC) #21
sky
https://codereview.chromium.org/2482463002/diff/100001/chrome/browser/browser_process_impl.cc File chrome/browser/browser_process_impl.cc (left): https://codereview.chromium.org/2482463002/diff/100001/chrome/browser/browser_process_impl.cc#oldcode308 chrome/browser/browser_process_impl.cc:308: #if !defined(OS_ANDROID) Why are you removing this ifdef?
4 years, 1 month ago (2016-11-10 20:27:50 UTC) #22
fdoray
PTAnL https://codereview.chromium.org/2482463002/diff/100001/chrome/browser/browser_process_impl.cc File chrome/browser/browser_process_impl.cc (left): https://codereview.chromium.org/2482463002/diff/100001/chrome/browser/browser_process_impl.cc#oldcode308 chrome/browser/browser_process_impl.cc:308: #if !defined(OS_ANDROID) On 2016/11/10 20:27:50, sky wrote: > ...
4 years, 1 month ago (2016-11-10 20:41:53 UTC) #23
achuithb
chromeos lgtm https://codereview.chromium.org/2482463002/diff/100001/chrome/browser/chromeos/login/bluetooth_host_pairing_browsertest.cc File chrome/browser/chromeos/login/bluetooth_host_pairing_browsertest.cc (right): https://codereview.chromium.org/2482463002/diff/100001/chrome/browser/chromeos/login/bluetooth_host_pairing_browsertest.cc#newcode92 chrome/browser/chromeos/login/bluetooth_host_pairing_browsertest.cc:92: static_cast<device::FakeInputServiceLinux*>( Could you pull this out into ...
4 years, 1 month ago (2016-11-10 23:24:00 UTC) #24
sky
LGTM
4 years, 1 month ago (2016-11-10 23:28:05 UTC) #25
fdoray
https://codereview.chromium.org/2482463002/diff/100001/chrome/browser/chromeos/login/bluetooth_host_pairing_browsertest.cc File chrome/browser/chromeos/login/bluetooth_host_pairing_browsertest.cc (right): https://codereview.chromium.org/2482463002/diff/100001/chrome/browser/chromeos/login/bluetooth_host_pairing_browsertest.cc#newcode92 chrome/browser/chromeos/login/bluetooth_host_pairing_browsertest.cc:92: static_cast<device::FakeInputServiceLinux*>( On 2016/11/10 23:24:00, achuithb wrote: > Could you ...
4 years, 1 month ago (2016-11-11 14:21:45 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2482463002/120001
4 years, 1 month ago (2016-11-11 14:22:09 UTC) #31
commit-bot: I haz the power
Failed to apply patch for chrome/browser/browser_process_impl.cc: While running git apply --index -p1; error: patch failed: ...
4 years, 1 month ago (2016-11-11 15:32:42 UTC) #33
commit-bot: I haz the power
4 years, 1 month ago (2016-11-11 15:34:03 UTC) #35
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/3b9a7a6338f1c5f393d2201f16839eb072d3c277
Cr-Commit-Position: refs/heads/master@{#431564}

Powered by Google App Engine
This is Rietveld 408576698