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

Unified Diff: chrome/browser/chromeos/file_manager/path_util_unittest.cc

Issue 2918203002: cros: Fix loading user profile w/o UserSessionManager (Closed)
Patch Set: rebase Created 3 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/chromeos/file_manager/path_util_unittest.cc
diff --git a/chrome/browser/chromeos/file_manager/path_util_unittest.cc b/chrome/browser/chromeos/file_manager/path_util_unittest.cc
index 351f45091d5091e999e8f00c64a9fa68b42351eb..3eda98d815ac2188f30a4925381e5e754e5e74ce 100644
--- a/chrome/browser/chromeos/file_manager/path_util_unittest.cc
+++ b/chrome/browser/chromeos/file_manager/path_util_unittest.cc
@@ -100,14 +100,14 @@ TEST(FileManagerPathUtilTest, ConvertPathToArcUrl) {
// Conversion of paths under the primary profile's downloads folder.
const base::FilePath downloads = GetDownloadsFolderForProfile(
- chromeos::ProfileHelper::Get()->GetProfileByUserIdHash(
+ chromeos::ProfileHelper::Get()->GetProfileByUserIdHashForTest(
"user@gmail.com-hash"));
EXPECT_TRUE(ConvertPathToArcUrl(downloads.AppendASCII("a/b/c"), &url));
EXPECT_EQ(GURL("file:///sdcard/Download/a/b/c"), url);
// Non-primary profile's downloads folder is not supported for ARC yet.
const base::FilePath downloads2 = GetDownloadsFolderForProfile(
- chromeos::ProfileHelper::Get()->GetProfileByUserIdHash(
+ chromeos::ProfileHelper::Get()->GetProfileByUserIdHashForTest(
"user2@gmail.com-hash"));
EXPECT_FALSE(ConvertPathToArcUrl(downloads2.AppendASCII("a/b/c"), &url));
}

Powered by Google App Engine
This is Rietveld 408576698