| Index: chrome/browser/media/router/discovery/dial/dial_registry.h
|
| diff --git a/chrome/browser/media/router/discovery/dial/dial_registry.h b/chrome/browser/media/router/discovery/dial/dial_registry.h
|
| index 962533727f4aa2ac641f5e6d53c7594fd342b048..c1f885c2dea86c32132271f90bb899f549ce1425 100644
|
| --- a/chrome/browser/media/router/discovery/dial/dial_registry.h
|
| +++ b/chrome/browser/media/router/discovery/dial/dial_registry.h
|
| @@ -63,9 +63,9 @@ class DialRegistry : public DialService::Observer,
|
| void OnListenerRemoved();
|
|
|
| // pass a reference of |observer| to allow it to notify on DIAL device events.
|
| - // This class does not take ownership of |observer|.
|
| - void RegisterObserver(Observer* observer);
|
| - void UnregisterObserver(Observer* observer);
|
| + // This class does not take ownership of observer.
|
| + virtual void RegisterObserver(Observer* observer);
|
| + virtual void UnregisterObserver(Observer* observer);
|
|
|
| // Called by the DIAL API to try to kickoff a discovery if there is not one
|
| // already active.
|
| @@ -102,6 +102,7 @@ class DialRegistry : public DialService::Observer,
|
| using DeviceByLabelMap = std::map<std::string, DialDeviceData*>;
|
|
|
| friend class MockDialRegistry;
|
| + friend class TestDialRegistry;
|
| friend struct base::DefaultSingletonTraits<DialRegistry>;
|
|
|
| DialRegistry();
|
|
|