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

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

Issue 14028010: CrOS multi-profiles ProfileManager changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix tests Created 7 years, 8 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
« no previous file with comments | « chrome/browser/chromeos/login/mock_user_manager.cc ('k') | chrome/browser/profiles/profile_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_manager.h
diff --git a/chrome/browser/profiles/profile_manager.h b/chrome/browser/profiles/profile_manager.h
index a0d1262d04c77dc7828a81c85d96b4d501604975..a93d457fc223f9fedaf2a049317e11eee5926ead 100644
--- a/chrome/browser/profiles/profile_manager.h
+++ b/chrome/browser/profiles/profile_manager.h
@@ -80,9 +80,11 @@ class ProfileManager : public base::NonThreadSafe,
const string16& icon_url,
bool is_managed);
- // Initiates default profile creation. If default profile has already been
- // created then the callback is called immediately. Should be called on the
- // UI thread.
+ // Initiates profile creation identified by |active_profile_username_hash_|.
+ // If profile has already been created then the callback is called
+ // immediately. Should be called on the UI thread.
+ // This method is only used on Chrome OS where every user profile
+ // has username_hash associated with it.
static void CreateDefaultProfileAsync(const CreateCallback& callback);
// Returns true if the profile pointer is known to point to an existing
@@ -356,6 +358,11 @@ class ProfileManager : public base::NonThreadSafe,
std::vector<Profile*> active_profiles_;
bool closing_all_browsers_;
+#if defined(OS_CHROMEOS)
+ // Identifies active profile on Chrome OS.
+ std::string active_profile_username_hash_;
+#endif
+
DISALLOW_COPY_AND_ASSIGN(ProfileManager);
};
« no previous file with comments | « chrome/browser/chromeos/login/mock_user_manager.cc ('k') | chrome/browser/profiles/profile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698