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

Unified Diff: chrome/browser/profiles/profile_manager.h

Issue 16104008: First try at a user management screen for the desktop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase and review comments 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: 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.

Powered by Google App Engine
This is Rietveld 408576698