Chromium Code Reviews| Index: content/public/common/service_registry.h |
| diff --git a/content/public/common/service_registry.h b/content/public/common/service_registry.h |
| index bbad59efad8e0266b1857f86181bf335431b5a77..3de2955905eca396fb2e035db146db7114cd2c2e 100644 |
| --- a/content/public/common/service_registry.h |
| +++ b/content/public/common/service_registry.h |
| @@ -9,6 +9,7 @@ |
| #include "base/bind.h" |
| #include "base/callback.h" |
| +#include "base/memory/weak_ptr.h" |
| #include "base/strings/string_piece.h" |
| #include "content/common/content_export.h" |
| #include "mojo/public/cpp/bindings/interface_ptr.h" |
| @@ -20,7 +21,8 @@ namespace content { |
| // A ServiceRegistry exposes local services that have been added using |
| // AddService to a paired remote ServiceRegistry and provides local access to |
| // services exposed by the remote ServiceRegistry through GetInterface. |
| -class CONTENT_EXPORT ServiceRegistry { |
| +class CONTENT_EXPORT ServiceRegistry |
| + : public base::SupportsWeakPtr<ServiceRegistry> { |
|
darin (slow to review)
2014/06/21 04:44:16
Please use WeakPtrFactory instead. There was a chr
Sam McNally
2014/06/24 08:45:01
Done.
|
| public: |
| virtual ~ServiceRegistry() {} |