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

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: Sync 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..d6753418e1bec2b16a30c56dafb7ba9c4c58f64e 100644
--- a/content/shell/browser/blink_test_controller.cc
+++ b/content/shell/browser/blink_test_controller.cc
@@ -384,12 +384,12 @@ bool BlinkTestController::IsMainWindow(WebContents* web_contents) const {
}
scoped_ptr<BluetoothChooser> BlinkTestController::RunBluetoothChooser(
- WebContents* web_contents,
+ RenderFrameHost* frame,
const BluetoothChooser::EventHandler& event_handler,
const url::Origin& origin) {
if (bluetooth_chooser_factory_) {
- return bluetooth_chooser_factory_->RunBluetoothChooser(
- web_contents, event_handler, origin);
+ return bluetooth_chooser_factory_->RunBluetoothChooser(frame, event_handler,
+ origin);
}
return nullptr;
}

Powered by Google App Engine
This is Rietveld 408576698