| Index: chrome/browser/profiles/profile_manager.h
|
| diff --git a/chrome/browser/profiles/profile_manager.h b/chrome/browser/profiles/profile_manager.h
|
| index 0333959fab0ba4937d68beecda64b186f816cd0f..f1ef00b2c959999b0d446a71e8554da3b9759678 100644
|
| --- a/chrome/browser/profiles/profile_manager.h
|
| +++ b/chrome/browser/profiles/profile_manager.h
|
| @@ -178,6 +178,14 @@ class ProfileManager : public base::NonThreadSafe,
|
| chrome::HostDesktopType desktop_type,
|
| bool always_create);
|
|
|
| + // Opens a Browser with the specified profile given by |path|.
|
| + // If |always_create| is true then a new window is created
|
| + // even if a window for that profile already exists.
|
| + static void SwitchToProfile(
|
| + const base::FilePath& path,
|
| + chrome::HostDesktopType desktop_type,
|
| + bool always_create);
|
| +
|
| // Profile::Delegate implementation:
|
| virtual void OnProfileCreated(Profile* profile,
|
| bool success,
|
| @@ -261,6 +269,7 @@ class ProfileManager : public base::NonThreadSafe,
|
| private:
|
| friend class TestingProfileManager;
|
| FRIEND_TEST_ALL_PREFIXES(ProfileManagerBrowserTest, DeleteAllProfiles);
|
| + FRIEND_TEST_ALL_PREFIXES(ProfileManagerBrowserTest, SwitchToProfile);
|
|
|
| // This struct contains information about profiles which are being loaded or
|
| // were loaded.
|
|
|