| Index: apps/app_shim/app_shim_host_manager_mac.h
|
| diff --git a/apps/app_shim/app_shim_host_manager_mac.h b/apps/app_shim/app_shim_host_manager_mac.h
|
| index 1c088f50cdd05492da254dd3f57bd5a58d460d90..b8e9e04c5420e9e6a54188eefdb6954f55b3318f 100644
|
| --- a/apps/app_shim/app_shim_host_manager_mac.h
|
| +++ b/apps/app_shim/app_shim_host_manager_mac.h
|
| @@ -6,23 +6,25 @@
|
| #define CHROME_BROWSER_WEB_APPLICATIONS_APP_SHIM_HOST_MANAGER_MAC_H_
|
|
|
| #include "apps/app_shim/extension_app_shim_handler_mac.h"
|
| -#include "base/memory/weak_ptr.h"
|
| +#include "base/memory/ref_counted.h"
|
| #include "ipc/ipc_channel_factory.h"
|
|
|
| // The AppShimHostManager receives connections from app shims on a UNIX
|
| // socket (|factory_|) and creates a helper object to manage the connection.
|
| class AppShimHostManager
|
| : public IPC::ChannelFactory::Delegate,
|
| - public base::SupportsWeakPtr<AppShimHostManager> {
|
| + public base::RefCountedThreadSafe<AppShimHostManager> {
|
| public:
|
| AppShimHostManager();
|
| - virtual ~AppShimHostManager();
|
|
|
| apps::ExtensionAppShimHandler* extension_app_shim_handler() {
|
| return &extension_app_shim_handler_;
|
| }
|
|
|
| private:
|
| + friend class base::RefCountedThreadSafe<AppShimHostManager>;
|
| + virtual ~AppShimHostManager();
|
| +
|
| // IPC::ChannelFactory::Delegate implementation.
|
| virtual void OnClientConnected(const IPC::ChannelHandle& handle) OVERRIDE;
|
| virtual void OnListenError() OVERRIDE;
|
|
|