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 f7ad12162f5a8ee9a46959d87fc694221b4a1724..12938a560e05d7035ece5afb57a9724ba2c4f2be 100644 |
--- a/chrome/browser/chromeos/file_manager/path_util_unittest.cc |
+++ b/chrome/browser/chromeos/file_manager/path_util_unittest.cc |
@@ -90,14 +90,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)); |
} |