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

Unified Diff: chrome/browser/chromeos/profiles/profile_helper_browsertest.cc

Issue 442043002: ProfileManager doesn't depend on "--login-profile" switch. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased and comments addressed. 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_browsertest.cc
diff --git a/chrome/browser/chromeos/profiles/profile_helper_browsertest.cc b/chrome/browser/chromeos/profiles/profile_helper_browsertest.cc
index 8f173708247cafa228997afb99c842036213021c..82f97b6902dc9ce8b846002d050939035dcf2ab5 100644
--- a/chrome/browser/chromeos/profiles/profile_helper_browsertest.cc
+++ b/chrome/browser/chromeos/profiles/profile_helper_browsertest.cc
@@ -44,25 +44,6 @@ IN_PROC_BROWSER_TEST_F(ProfileHelperTest, ActiveUserProfileDir) {
EXPECT_EQ(expected_dir, profile_dir.BaseName().value());
}
-IN_PROC_BROWSER_TEST_F(ProfileHelperTest,
- GetProfileDirByLegacyLoginProfileSwitch) {
- CommandLine::ForCurrentProcess()->
- AppendSwitchASCII(chromeos::switches::kLoginProfile,
- chrome::kLegacyProfileDir);
- EXPECT_EQ(chrome::kLegacyProfileDir,
- ProfileHelper::GetProfileDirByLegacyLoginProfileSwitch().value());
- CommandLine::ForCurrentProcess()->
- AppendSwitchASCII(chromeos::switches::kLoginProfile,
- chrome::kTestUserProfileDir);
- EXPECT_EQ(chrome::kTestUserProfileDir,
- ProfileHelper::GetProfileDirByLegacyLoginProfileSwitch().value());
- CommandLine::ForCurrentProcess()->
- AppendSwitchASCII(chromeos::switches::kLoginProfile,
- kActiveUserHash);
- EXPECT_EQ(std::string(chrome::kProfileDirPrefix) + kActiveUserHash,
- ProfileHelper::GetProfileDirByLegacyLoginProfileSwitch().value());
-}
-
IN_PROC_BROWSER_TEST_F(ProfileHelperTest, GetProfilePathByUserIdHash) {
ProfileHelper profile_helper;
base::FilePath profile_path =

Powered by Google App Engine
This is Rietveld 408576698