| Index: content/shell/browser/layout_test/layout_test_bluetooth_chooser_factory.cc
|
| diff --git a/content/shell/browser/layout_test/layout_test_bluetooth_chooser_factory.cc b/content/shell/browser/layout_test/layout_test_bluetooth_chooser_factory.cc
|
| index d5a881d602000a52995bddba793df20b64c8e654..fc29b9d86ce3e65175ae3a10aaa10c8091632b7d 100644
|
| --- a/content/shell/browser/layout_test/layout_test_bluetooth_chooser_factory.cc
|
| +++ b/content/shell/browser/layout_test/layout_test_bluetooth_chooser_factory.cc
|
| @@ -6,6 +6,7 @@
|
|
|
| #include "base/macros.h"
|
| #include "base/strings/utf_string_conversions.h"
|
| +#include "content/public/browser/render_frame_host.h"
|
| #include "url/origin.h"
|
|
|
| namespace content {
|
| @@ -100,9 +101,9 @@ LayoutTestBluetoothChooserFactory::~LayoutTestBluetoothChooserFactory() {
|
|
|
| scoped_ptr<BluetoothChooser>
|
| LayoutTestBluetoothChooserFactory::RunBluetoothChooser(
|
| - WebContents* web_contents,
|
| - const BluetoothChooser::EventHandler& event_handler,
|
| - const url::Origin& origin) {
|
| + RenderFrameHost* frame,
|
| + const BluetoothChooser::EventHandler& event_handler) {
|
| + const url::Origin origin = frame->GetLastCommittedOrigin();
|
| DCHECK(!origin.unique());
|
| std::string event = "chooser-opened(";
|
| event += origin.Serialize();
|
|
|