Index: chrome/test/base/ui_test_utils.cc |
diff --git a/chrome/test/base/ui_test_utils.cc b/chrome/test/base/ui_test_utils.cc |
index 2be097e157f429176bd7545a336e904405f38d6b..326f443216ccf5be919feaec0295c59f1afc7b50 100644 |
--- a/chrome/test/base/ui_test_utils.cc |
+++ b/chrome/test/base/ui_test_utils.cc |
@@ -335,8 +335,8 @@ int FindInPage(WebContents* tab, |
void DownloadURL(Browser* browser, const GURL& download_url) { |
base::ScopedTempDir downloads_directory; |
ASSERT_TRUE(downloads_directory.CreateUniqueTempDir()); |
- browser->profile()->GetPrefs()->SetFilePath( |
- prefs::kDownloadDefaultDirectory, downloads_directory.path()); |
+ browser->profile()->GetPrefs()->SetFilePath(prefs::kDownloadDefaultDirectory, |
+ downloads_directory.GetPath()); |
content::DownloadManager* download_manager = |
content::BrowserContext::GetDownloadManager(browser->profile()); |