| Index: apps/app_shim/app_shim_host_mac.h
|
| diff --git a/apps/app_shim/app_shim_host_mac.h b/apps/app_shim/app_shim_host_mac.h
|
| index ce5ce5b4d1861ddaeb13b4ab6b7ca565a8c58965..bc073a01ee4ea3d4cff8aa7ebed2acfa5ae2ec03 100644
|
| --- a/apps/app_shim/app_shim_host_mac.h
|
| +++ b/apps/app_shim/app_shim_host_mac.h
|
| @@ -11,6 +11,7 @@
|
| #include "base/files/file_path.h"
|
| #include "base/memory/scoped_ptr.h"
|
| #include "base/threading/non_thread_safe.h"
|
| +#include "chrome/browser/profiles/profile_loader.h"
|
| #include "ipc/ipc_listener.h"
|
| #include "ipc/ipc_sender.h"
|
|
|
| @@ -40,9 +41,12 @@ class AppShimHost : public IPC::Listener,
|
| void ServeChannel(const IPC::ChannelHandle& handle);
|
|
|
| protected:
|
| + virtual void LoadProfile(const base::FilePath& profile_dir,
|
| + base::Callback<void(Profile*)> callback);
|
|
|
| - // Used internally; virtual so they can be mocked for testing.
|
| - virtual Profile* FetchProfileForDirectory(const base::FilePath& profile_dir);
|
| + virtual void LaunchAppWithProfile(const std::string& app_id,
|
| + apps::AppShimLaunchType launch_type,
|
| + Profile* profile);
|
|
|
| // IPC::Listener implementation.
|
| virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
|
| @@ -79,6 +83,8 @@ class AppShimHost : public IPC::Listener,
|
| scoped_ptr<IPC::ChannelProxy> channel_;
|
| std::string app_id_;
|
| Profile* profile_;
|
| + ProfileLoader profile_loader_;
|
| + base::WeakPtrFactory<AppShimHost> weak_factory_;
|
| };
|
|
|
| #endif // CHROME_BROWSER_WEB_APPLICATIONS_APP_SHIM_HOST_MAC_H_
|
|
|