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

Unified Diff: apps/app_shim/app_shim_host_mac_unittest.cc

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
« apps/app_shim/app_shim_host_mac.cc ('K') | « apps/app_shim/app_shim_host_mac.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/app_shim/app_shim_host_mac_unittest.cc
diff --git a/apps/app_shim/app_shim_host_mac_unittest.cc b/apps/app_shim/app_shim_host_mac_unittest.cc
index 6b1d0498bcb1b65c4e727dfcd55bde3c78cb47b5..9c8b5af47a2ab345e62f2fd4f3630894aeb390da 100644
--- a/apps/app_shim/app_shim_host_mac_unittest.cc
+++ b/apps/app_shim/app_shim_host_mac_unittest.cc
@@ -29,8 +29,9 @@ class TestingAppShimHost : public AppShimHost {
}
protected:
- virtual Profile* FetchProfileForDirectory(const base::FilePath& profile_dir)
- OVERRIDE;
+ virtual void LoadProfile(const base::FilePath& profile_dir,
+ base::Callback<void(Profile*)> callback) OVERRIDE;
+
virtual bool Send(IPC::Message* message) OVERRIDE;
private:
@@ -58,9 +59,9 @@ bool TestingAppShimHost::Send(IPC::Message* message) {
return true;
}
-Profile* TestingAppShimHost::FetchProfileForDirectory(
- const base::FilePath& profile_dir) {
- return fails_profile_ ? NULL : test_profile_;
+void TestingAppShimHost::LoadProfile(const base::FilePath& profile_dir,
+ base::Callback<void(Profile*)> callback) {
+ callback.Run(test_profile_);
}
const char kTestAppId[] = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
« apps/app_shim/app_shim_host_mac.cc ('K') | « apps/app_shim/app_shim_host_mac.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698