Chromium Code Reviews| Index: chrome/browser/ui/bluetooth/chrome_extension_bluetooth_chooser.cc |
| diff --git a/chrome/browser/ui/bluetooth/chrome_extension_bluetooth_chooser.cc b/chrome/browser/ui/bluetooth/chrome_extension_bluetooth_chooser.cc |
| index bb653096282127a0834a23019250b6b20dbb1b07..e27f1ded72a06388a439acc8d4d601b1fbf199a6 100644 |
| --- a/chrome/browser/ui/bluetooth/chrome_extension_bluetooth_chooser.cc |
| +++ b/chrome/browser/ui/bluetooth/chrome_extension_bluetooth_chooser.cc |
| @@ -11,11 +11,12 @@ |
| ChromeExtensionBluetoothChooser::ChromeExtensionBluetoothChooser( |
| content::RenderFrameHost* frame, |
| const content::BluetoothChooser::EventHandler& event_handler) { |
| - bluetooth_chooser_controller_.reset( |
| + std::unique_ptr<BluetoothChooserController> bluetooth_chooser_controller( |
| new BluetoothChooserController(frame, event_handler)); |
| + bluetooth_chooser_controller_ = bluetooth_chooser_controller.get(); |
|
Reilly Grant (use Gerrit)
2016/06/22 00:01:32
Please add a comment here explaining why storing t
juncai
2016/06/22 01:17:45
Done.
|
| chooser_dialog_.reset(new ChromeExtensionChooserDialog( |
| content::WebContents::FromRenderFrameHost(frame))); |
| - chooser_dialog_->ShowDialog(bluetooth_chooser_controller_.get()); |
| + chooser_dialog_->ShowDialog(std::move(bluetooth_chooser_controller)); |
| } |
| ChromeExtensionBluetoothChooser::~ChromeExtensionBluetoothChooser() {} |