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

Issue 2203103003: Reset Bluetooth EventHandler when it is invalid (Closed)

Created:
4 years, 4 months ago by juncai
Modified:
4 years, 3 months ago
CC:
chromium-reviews, ortuno
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reset Bluetooth EventHandler when it is invalid When BluetoothChooser object is destroyed, its associated Bluetooth EventHandler becomes invalid too and should not be used any more. This CL resets the Bluetooth EventHandler when it becomes invalid so that it can't be used any more. BUG=629298 Committed: https://crrev.com/b583bbc88c44a1b90192110b071486cd953067e9 Cr-Commit-Position: refs/heads/master@{#410690}

Patch Set 1 : reset Bluetooth EventHandler when it is not valid #

Total comments: 4

Patch Set 2 : address comments #

Patch Set 3 : fixed mac compile error #

Patch Set 4 : tried fixing compile errors #

Total comments: 2

Patch Set 5 : added CONTENT_EXPORT #

Patch Set 6 : added CONTENT_EXPORT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -2 lines) Patch
A chrome/browser/ui/bluetooth/DEPS View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/bluetooth/bluetooth_chooser_controller.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc View 1 4 chunks +17 lines, -0 lines 0 comments Download
M chrome/browser/ui/bluetooth/bluetooth_chooser_desktop.cc View 1 1 chunk +6 lines, -1 line 0 comments Download
M content/browser/bluetooth/bluetooth_metrics.h View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 45 (31 generated)
juncai
Please take a look.
4 years, 4 months ago (2016-08-02 22:14:44 UTC) #5
Jeffrey Yasskin
https://codereview.chromium.org/2203103003/diff/1/chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc File chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc (right): https://codereview.chromium.org/2203103003/diff/1/chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc#newcode79 chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc:79: if (event_handler_.is_null()) Would it make sense to record how ...
4 years, 4 months ago (2016-08-05 20:37:51 UTC) #8
juncai
https://codereview.chromium.org/2203103003/diff/1/chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc File chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc (right): https://codereview.chromium.org/2203103003/diff/1/chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc#newcode79 chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc:79: if (event_handler_.is_null()) On 2016/08/05 20:37:51, Jeffrey Yasskin wrote: > ...
4 years, 4 months ago (2016-08-05 22:51:58 UTC) #11
Jeffrey Yasskin
lgtm https://codereview.chromium.org/2203103003/diff/60001/content/browser/bluetooth/bluetooth_metrics.h File content/browser/bluetooth/bluetooth_metrics.h (right): https://codereview.chromium.org/2203103003/diff/60001/content/browser/bluetooth/bluetooth_metrics.h#newcode86 content/browser/bluetooth/bluetooth_metrics.h:86: void RecordRequestDeviceOutcome(UMARequestDeviceOutcome outcome); You'll have to mark this ...
4 years, 4 months ago (2016-08-08 16:48:38 UTC) #22
juncai
https://codereview.chromium.org/2203103003/diff/60001/content/browser/bluetooth/bluetooth_metrics.h File content/browser/bluetooth/bluetooth_metrics.h (right): https://codereview.chromium.org/2203103003/diff/60001/content/browser/bluetooth/bluetooth_metrics.h#newcode86 content/browser/bluetooth/bluetooth_metrics.h:86: void RecordRequestDeviceOutcome(UMARequestDeviceOutcome outcome); On 2016/08/08 16:48:38, Jeffrey Yasskin wrote: ...
4 years, 4 months ago (2016-08-08 18:42:39 UTC) #31
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/2203103003/100001
4 years, 4 months ago (2016-08-08 18:42:47 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/233006)
4 years, 4 months ago (2016-08-08 18:49:24 UTC) #34
juncai
rkaplow@chromium.org: Please review changes at //tools/metrics/histograms/histograms.xml
4 years, 4 months ago (2016-08-08 18:57:55 UTC) #36
rkaplow
lgtm
4 years, 4 months ago (2016-08-09 15:21:24 UTC) #37
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/2203103003/100001
4 years, 4 months ago (2016-08-09 15:53:43 UTC) #39
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 4 months ago (2016-08-09 15:59:17 UTC) #41
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/b583bbc88c44a1b90192110b071486cd953067e9 Cr-Commit-Position: refs/heads/master@{#410690}
4 years, 4 months ago (2016-08-09 16:03:18 UTC) #43
brettw
The include from chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc of content/browser/bluetooth/bluetooth_metrics.h (and the DEPS rule where you whitelisted this include) ...
4 years, 3 months ago (2016-08-25 19:34:27 UTC) #44
brettw
4 years, 3 months ago (2016-08-25 20:15:07 UTC) #45
Message was sent while issue was closed.
I filed https://bugs.chromium.org/p/chromium/issues/detail?id=641105 for this.

Powered by Google App Engine
This is Rietveld 408576698