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

Unified Diff: content/shell/browser/shell.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/shell.cc
diff --git a/content/shell/browser/shell.cc b/content/shell/browser/shell.cc
index 8164ad6da3527dc3b78a702e955176880f755e27..b955c3662409a846b7576311a39ebde1e7121f5e 100644
--- a/content/shell/browser/shell.cc
+++ b/content/shell/browser/shell.cc
@@ -384,14 +384,14 @@ JavaScriptDialogManager* Shell::GetJavaScriptDialogManager(
}
scoped_ptr<BluetoothChooser> Shell::RunBluetoothChooser(
- WebContents* web_contents,
+ RenderFrameHost* frame,
const BluetoothChooser::EventHandler& event_handler,
const url::Origin& origin) {
const base::CommandLine& command_line =
*base::CommandLine::ForCurrentProcess();
if (command_line.HasSwitch(switches::kRunLayoutTest)) {
- return BlinkTestController::Get()->RunBluetoothChooser(
- web_contents, event_handler, origin);
+ return BlinkTestController::Get()->RunBluetoothChooser(frame, event_handler,
+ origin);
}
return nullptr;
}
« content/browser/bluetooth/bluetooth_dispatcher_host.cc ('K') | « content/shell/browser/shell.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698