Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1891)

Unified Diff: apps/app_shim/app_shim_host_mac.h

Issue 16766003: Move ProfileLoader to chrome/browser/profiles. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..9444d96e40762a354c82ba429039788fc6a2fe90 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/ui/app_list/profile_loader.h"
tapted 2013/06/11 05:31:44 Hmm. This makes something of a circular dependency
jackhou1 2013/06/12 09:41:32 Done.
#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_

Powered by Google App Engine
This is Rietveld 408576698