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

Issue 1672103002: Pass the frame instead of the WebContents through RunBluetoothChooser. (Closed)

Created:
4 years, 10 months ago by Jeffrey Yasskin
Modified:
4 years, 10 months ago
Reviewers:
jam, Peter Kasting
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, mlamouri+watch-test-runner_chromium.org, Peter Beverloo, jam, scheib+watch_chromium.org, darin-cc_chromium.org, ortuno+watch_chromium.org, mkwst+moarreviews-shell_chromium.org, jochen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@doc-bubble-lifetimes
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Pass the frame instead of the WebContents through RunBluetoothChooser. This lets us auto-close the bubble when the right frame is closed, in case the chooser is attached to a non-main frame. BUG=571466 Committed: https://crrev.com/93649a5d93a0219d92f4a99d3486f7704aec605e Cr-Commit-Position: refs/heads/master@{#375959}

Patch Set 1 : Sync #

Total comments: 2

Patch Set 2 : Don't pass the origin through RunBluetoothChooser, since it's computable from the RenderFrameHost. #

Patch Set 3 : Fix Android #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -54 lines) Patch
M chrome/browser/android/tab_web_contents_delegate_android.h View 1 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/android/tab_web_contents_delegate_android.cc View 1 2 1 chunk +3 lines, -5 lines 0 comments Download
M chrome/browser/ui/android/bluetooth_chooser_android.h View 1 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/android/bluetooth_chooser_android.cc View 1 2 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/ui/browser.h View 1 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 chunks +5 lines, -5 lines 0 comments Download
M content/browser/bluetooth/bluetooth_dispatcher_host.cc View 1 1 chunk +2 lines, -3 lines 0 comments Download
M content/public/browser/web_contents_delegate.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
M content/public/browser/web_contents_delegate.cc View 1 1 chunk +2 lines, -3 lines 0 comments Download
M content/shell/browser/blink_test_controller.h View 1 1 chunk +2 lines, -3 lines 0 comments Download
M content/shell/browser/blink_test_controller.cc View 1 1 chunk +4 lines, -5 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_bluetooth_chooser_factory.h View 1 2 chunks +3 lines, -4 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_bluetooth_chooser_factory.cc View 1 2 chunks +4 lines, -3 lines 0 comments Download
M content/shell/browser/shell.h View 1 1 chunk +2 lines, -3 lines 0 comments Download
M content/shell/browser/shell.cc View 1 1 chunk +4 lines, -5 lines 0 comments Download

Messages

Total messages: 21 (10 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1672103002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1672103002/20001
4 years, 10 months ago (2016-02-17 01:39:24 UTC) #3
Jeffrey Yasskin
This continues https://codereview.chromium.org/1572743002 by passing the RenderFrameHost that opened the Bluetooth chooser, instead of its ...
4 years, 10 months ago (2016-02-17 01:43:25 UTC) #5
jam
lgtm with comment if you agree https://codereview.chromium.org/1672103002/diff/20001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1672103002/diff/20001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode1079 content/browser/bluetooth/bluetooth_dispatcher_host.cc:1079: render_frame_host->GetLastCommittedOrigin()); no need ...
4 years, 10 months ago (2016-02-17 01:54:16 UTC) #6
Peter Kasting
LGTM
4 years, 10 months ago (2016-02-17 02:51:58 UTC) #7
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-17 04:05:56 UTC) #9
Jeffrey Yasskin
https://codereview.chromium.org/1672103002/diff/20001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1672103002/diff/20001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode1079 content/browser/bluetooth/bluetooth_dispatcher_host.cc:1079: render_frame_host->GetLastCommittedOrigin()); On 2016/02/17 01:54:16, jam wrote: > no need ...
4 years, 10 months ago (2016-02-17 17:51:36 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1672103002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1672103002/40001
4 years, 10 months ago (2016-02-17 17:52:51 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: android_compile_dbg on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_compile_dbg/builds/23036)
4 years, 10 months ago (2016-02-17 18:11:43 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1672103002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1672103002/60001
4 years, 10 months ago (2016-02-17 18:20:50 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 10 months ago (2016-02-17 19:57:10 UTC) #19
commit-bot: I haz the power
4 years, 10 months ago (2016-02-17 19:58:43 UTC) #21
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/93649a5d93a0219d92f4a99d3486f7704aec605e
Cr-Commit-Position: refs/heads/master@{#375959}

Powered by Google App Engine
This is Rietveld 408576698