summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/webui/inspect_ui.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/webui/inspect_ui.cc')
-rw-r--r--chrome/browser/ui/webui/inspect_ui.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/ui/webui/inspect_ui.cc b/chrome/browser/ui/webui/inspect_ui.cc
index ed35880..e98a086 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();