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

Unified Diff: chrome/browser/download/download_target_determiner_unittest.cc

Issue 2782553004: Move TestingPrefService to use unique_ptr<Value> (Closed)
Patch Set: comments Created 3 years, 9 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/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) {

Powered by Google App Engine
This is Rietveld 408576698