| Index: chrome/browser/ui/webui/inspect_ui.cc
|
| diff --git a/chrome/browser/ui/webui/inspect_ui.cc b/chrome/browser/ui/webui/inspect_ui.cc
|
| index ed35880678e4fd17c6298660a250044f9ad5d09a..e98a0867c9664743b965ddd58ba1f644ae5a72d5 100644
|
| --- a/chrome/browser/ui/webui/inspect_ui.cc
|
| +++ b/chrome/browser/ui/webui/inspect_ui.cc
|
| @@ -266,10 +266,10 @@ void InspectMessageHandler::HandleInspectCommand(const ListValue* args) {
|
| return;
|
| scoped_refptr<DevToolsAgentHost> agent_host(
|
| DevToolsAgentHost::GetForWorker(process_id, route_id));
|
| - if (!agent_host)
|
| + if (!agent_host.get())
|
| return;
|
|
|
| - DevToolsWindow::OpenDevToolsWindowForWorker(profile, agent_host);
|
| + DevToolsWindow::OpenDevToolsWindowForWorker(profile, agent_host.get());
|
| }
|
|
|
| static void TerminateWorker(int process_id, int route_id) {
|
| @@ -407,7 +407,7 @@ void InspectUI::Observe(int type,
|
|
|
| void InspectUI::StopListeningNotifications()
|
| {
|
| - if (!observer_)
|
| + if (!observer_.get())
|
| return;
|
| adb_bridge_.reset();
|
| observer_->InspectUIDestroyed();
|
|
|