Index: chrome/browser/download/download_target_determiner_unittest.cc |
diff --git a/chrome/browser/download/download_target_determiner_unittest.cc b/chrome/browser/download/download_target_determiner_unittest.cc |
index 6755620a8df141d234e62ab55012313215008da8..1a175578742b5ea541b4b88733ccdffb687ffc45 100644 |
--- a/chrome/browser/download/download_target_determiner_unittest.cc |
+++ b/chrome/browser/download/download_target_determiner_unittest.cc |
@@ -364,10 +364,8 @@ void DownloadTargetDeterminerTest::EnableAutoOpenBasedOnExtension( |
void DownloadTargetDeterminerTest::SetManagedDownloadPath( |
const base::FilePath& path) { |
- profile()->GetTestingPrefService()-> |
- // TODO(crbug.com/697817): Convert SetManagedPrefs to take a unique_ptr. |
- SetManagedPref(prefs::kDownloadDefaultDirectory, |
- base::CreateFilePathValue(path).release()); |
+ profile()->GetTestingPrefService()->SetManagedPref( |
+ prefs::kDownloadDefaultDirectory, base::CreateFilePathValue(path)); |
} |
void DownloadTargetDeterminerTest::SetPromptForDownload(bool prompt) { |