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

Issue 2038843003: bluetooth: Don't call methods of WebContentsImpl while it's being destroyed. (Closed)

Created:
4 years, 6 months ago by ortuno
Modified:
4 years, 6 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, ortuno+watch_chromium.org, scheib+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

bluetooth: Don't call methods of WebContentsImpl while it's being destroyed. BUG=615319 Committed: https://crrev.com/467e5793a107a79b36c914a97d6bbbfda7430360 Cr-Commit-Position: refs/heads/master@{#399091}

Patch Set 1 #

Patch Set 2 : Fix dcheck #

Total comments: 10

Patch Set 3 : Address jyasskin's comments #

Total comments: 8

Patch Set 4 : Address moar comments #

Total comments: 6

Patch Set 5 : Remove test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -19 lines) Patch
M content/browser/bluetooth/frame_connected_bluetooth_devices_unittest.cc View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 2 chunks +27 lines, -17 lines 0 comments Download

Messages

Total messages: 25 (8 generated)
ortuno
jyasskin: PTAL. This is as straightforward as I could get it.
4 years, 6 months ago (2016-06-03 23:17:58 UTC) #2
Jeffrey Yasskin
https://codereview.chromium.org/2038843003/diff/20001/content/browser/bluetooth/frame_connected_bluetooth_devices.cc File content/browser/bluetooth/frame_connected_bluetooth_devices.cc (right): https://codereview.chromium.org/2038843003/diff/20001/content/browser/bluetooth/frame_connected_bluetooth_devices.cc#newcode104 content/browser/bluetooth/frame_connected_bluetooth_devices.cc:104: DCHECK(!web_contents_impl_->IsBeingDestroyed()); Because this has security implications, make it a ...
4 years, 6 months ago (2016-06-06 16:55:36 UTC) #3
ortuno
https://codereview.chromium.org/2038843003/diff/20001/content/browser/bluetooth/frame_connected_bluetooth_devices.cc File content/browser/bluetooth/frame_connected_bluetooth_devices.cc (right): https://codereview.chromium.org/2038843003/diff/20001/content/browser/bluetooth/frame_connected_bluetooth_devices.cc#newcode104 content/browser/bluetooth/frame_connected_bluetooth_devices.cc:104: DCHECK(!web_contents_impl_->IsBeingDestroyed()); On 2016/06/06 at 16:55:36, Jeffrey Yasskin wrote: > ...
4 years, 6 months ago (2016-06-06 18:25:16 UTC) #4
Jeffrey Yasskin
lgtm https://codereview.chromium.org/2038843003/diff/40001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/2038843003/diff/40001/content/browser/web_contents/web_contents_impl.cc#newcode4993 content/browser/web_contents/web_contents_impl.cc:4993: // Trying to update invalidate the tab state ...
4 years, 6 months ago (2016-06-06 20:32:20 UTC) #5
ortuno
Thanks! https://codereview.chromium.org/2038843003/diff/40001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/2038843003/diff/40001/content/browser/web_contents/web_contents_impl.cc#newcode4993 content/browser/web_contents/web_contents_impl.cc:4993: // Trying to update invalidate the tab state ...
4 years, 6 months ago (2016-06-06 22:38:05 UTC) #6
ortuno
nick: PTAL
4 years, 6 months ago (2016-06-06 22:38:25 UTC) #8
ncarter (slow)
https://codereview.chromium.org/2038843003/diff/60001/content/test/test_render_frame_host.h File content/test/test_render_frame_host.h (right): https://codereview.chromium.org/2038843003/diff/60001/content/test/test_render_frame_host.h#newcode163 content/test/test_render_frame_host.h:163: std::unique_ptr<FrameConnectedBluetoothDevices> connected_devices_; I'm not sure why this is needed ...
4 years, 6 months ago (2016-06-06 22:52:25 UTC) #9
ortuno
https://codereview.chromium.org/2038843003/diff/60001/content/test/test_render_frame_host.h File content/test/test_render_frame_host.h (right): https://codereview.chromium.org/2038843003/diff/60001/content/test/test_render_frame_host.h#newcode163 content/test/test_render_frame_host.h:163: std::unique_ptr<FrameConnectedBluetoothDevices> connected_devices_; On 2016/06/06 at 22:52:25, ncarter wrote: > ...
4 years, 6 months ago (2016-06-06 23:01:18 UTC) #10
ncarter (slow)
https://codereview.chromium.org/2038843003/diff/60001/content/browser/web_contents/web_contents_impl.h File content/browser/web_contents/web_contents_impl.h (right): https://codereview.chromium.org/2038843003/diff/60001/content/browser/web_contents/web_contents_impl.h#newcode755 content/browser/web_contents/web_contents_impl.h:755: // The following two methods have no effect while ...
4 years, 6 months ago (2016-06-08 19:15:35 UTC) #11
ortuno
https://codereview.chromium.org/2038843003/diff/60001/content/browser/web_contents/web_contents_impl.h File content/browser/web_contents/web_contents_impl.h (right): https://codereview.chromium.org/2038843003/diff/60001/content/browser/web_contents/web_contents_impl.h#newcode755 content/browser/web_contents/web_contents_impl.h:755: // The following two methods have no effect while ...
4 years, 6 months ago (2016-06-09 17:40:02 UTC) #12
ncarter (slow)
lgtm
4 years, 6 months ago (2016-06-09 18:09:29 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2038843003/80001
4 years, 6 months ago (2016-06-09 18:11:42 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/236620)
4 years, 6 months ago (2016-06-09 23:08:05 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2038843003/80001
4 years, 6 months ago (2016-06-10 03:00:58 UTC) #20
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 6 months ago (2016-06-10 04:32:50 UTC) #21
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-10 04:33:05 UTC) #22
commit-bot: I haz the power
4 years, 6 months ago (2016-06-10 04:35:42 UTC) #24
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/467e5793a107a79b36c914a97d6bbbfda7430360
Cr-Commit-Position: refs/heads/master@{#399091}

Powered by Google App Engine
This is Rietveld 408576698