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

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: forgot untracked files 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 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|.
Nikita (slow) 2013/06/14 17:23:15 nit: given > identified
noms (inactive) 2013/06/28 17:31:04 Done.
+ // 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.

Powered by Google App Engine
This is Rietveld 408576698