| Index: chrome/browser/profiles/profile_manager.h
|
| diff --git a/chrome/browser/profiles/profile_manager.h b/chrome/browser/profiles/profile_manager.h
|
| index 1b2ba421ffad50d93203d07e115a36a9e98a5017..d92e92a08b9f73d347a5591520d25f531a9f6ac9 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 identified 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,
|
| @@ -262,6 +270,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.
|
|
|