| Index: chrome/browser/devtools/devtools_targets_ui.cc
|
| diff --git a/chrome/browser/devtools/devtools_targets_ui.cc b/chrome/browser/devtools/devtools_targets_ui.cc
|
| index 555ad222ea97777657fe96e7534f2c0d649deeff..69f4ec2343c31a674de6f068204b3ff66926e7ee 100644
|
| --- a/chrome/browser/devtools/devtools_targets_ui.cc
|
| +++ b/chrome/browser/devtools/devtools_targets_ui.cc
|
| @@ -515,17 +515,17 @@ PortForwardingStatusSerializer::PortForwardingStatusSerializer(
|
| const Callback& callback, Profile* profile)
|
| : callback_(callback),
|
| profile_(profile) {
|
| - PortForwardingController* port_forwarding_controller =
|
| - PortForwardingController::Factory::GetForProfile(profile_);
|
| - if (port_forwarding_controller)
|
| - port_forwarding_controller->AddListener(this);
|
| + DevToolsAndroidBridge* android_bridge =
|
| + DevToolsAndroidBridge::Factory::GetForProfile(profile_);
|
| + if (android_bridge)
|
| + android_bridge->AddPortForwardingListener(this);
|
| }
|
|
|
| PortForwardingStatusSerializer::~PortForwardingStatusSerializer() {
|
| - PortForwardingController* port_forwarding_controller =
|
| - PortForwardingController::Factory::GetForProfile(profile_);
|
| - if (port_forwarding_controller)
|
| - port_forwarding_controller->RemoveListener(this);
|
| + DevToolsAndroidBridge* android_bridge =
|
| + DevToolsAndroidBridge::Factory::GetForProfile(profile_);
|
| + if (android_bridge)
|
| + android_bridge->RemovePortForwardingListener(this);
|
| }
|
|
|
| void PortForwardingStatusSerializer::PortStatusChanged(
|
|
|