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

Unified Diff: chrome/browser/chromeos/profiles/profile_helper.h

Issue 442043002: ProfileManager doesn't depend on "--login-profile" switch. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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/chromeos/profiles/profile_helper.h
diff --git a/chrome/browser/chromeos/profiles/profile_helper.h b/chrome/browser/chromeos/profiles/profile_helper.h
index fbbf9ef8a50016919a59bb5dcbb287bff32eb577..e6b99db380fd8f7de9e3f48ebe4ee8b8415b0b0c 100644
--- a/chrome/browser/chromeos/profiles/profile_helper.h
+++ b/chrome/browser/chromeos/profiles/profile_helper.h
@@ -55,9 +55,6 @@ class ProfileHelper
// Returns Profile instance that corresponds to |user_id_hash|.
static Profile* GetProfileByUserIdHash(const std::string& user_id_hash);
- // Returns profile dir that corresponds to a --login-profile cmd line switch.
- static base::FilePath GetProfileDirByLegacyLoginProfileSwitch();
-
// Returns profile path that corresponds to a given |user_id_hash|.
static base::FilePath GetProfilePathByUserIdHash(
const std::string& user_id_hash);
@@ -72,9 +69,6 @@ class ProfileHelper
// could not be extracted from |profile|.
static std::string GetUserIdHashFromProfile(Profile* profile);
- // Returns profile dir for the user identified by |user_id|.
- static base::FilePath GetUserProfileDirByUserId(const std::string& user_id);
-
// Returns user profile dir in a format [u-user_id_hash].
static base::FilePath GetUserProfileDir(const std::string& user_id_hash);
@@ -125,6 +119,9 @@ class ProfileHelper
// Returns NULL if User is not created.
user_manager::User* GetUserByProfile(Profile* profile);
+ static std::string GetUserIdHashByUserIdForTesting(
+ const std::string& user_id);
+
private:
friend class CryptohomeAuthenticatorTest;
friend class DeviceSettingsTestBase;
« no previous file with comments | « chrome/browser/chromeos/power/power_prefs_unittest.cc ('k') | chrome/browser/chromeos/profiles/profile_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698