| Index: chrome/browser/profiles/profile_manager.h
|
| diff --git a/chrome/browser/profiles/profile_manager.h b/chrome/browser/profiles/profile_manager.h
|
| index 21f403302a6ae4f8ed09b55705dde1d8e942d6f6..9059b62a5be50f664c902607fa78ff6b3d5cdfbd 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.
|
|
|