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

Unified Diff: content/shell/browser/blink_test_controller.cc

Issue 1672103002: Pass the frame instead of the WebContents through RunBluetoothChooser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@doc-bubble-lifetimes
Patch Set: Fix Android Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/shell/browser/blink_test_controller.cc
diff --git a/content/shell/browser/blink_test_controller.cc b/content/shell/browser/blink_test_controller.cc
index c948b84ce6f932f0ad56421a99a875e0b6e72d54..8e3547727d2332d90c5d6c1f9ff4e877ddb812e2 100644
--- a/content/shell/browser/blink_test_controller.cc
+++ b/content/shell/browser/blink_test_controller.cc
@@ -384,12 +384,11 @@ bool BlinkTestController::IsMainWindow(WebContents* web_contents) const {
}
scoped_ptr<BluetoothChooser> BlinkTestController::RunBluetoothChooser(
- WebContents* web_contents,
- const BluetoothChooser::EventHandler& event_handler,
- const url::Origin& origin) {
+ RenderFrameHost* frame,
+ const BluetoothChooser::EventHandler& event_handler) {
if (bluetooth_chooser_factory_) {
- return bluetooth_chooser_factory_->RunBluetoothChooser(
- web_contents, event_handler, origin);
+ return bluetooth_chooser_factory_->RunBluetoothChooser(frame,
+ event_handler);
}
return nullptr;
}

Powered by Google App Engine
This is Rietveld 408576698