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

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

Issue 2773513002: Stop passing raw pointers to DictionaryValue::Set, part 1 (Closed)
Patch Set: Fix compilation 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
« no previous file with comments | « cc/quads/nine_patch_generator.cc ('k') | chrome/browser/extensions/api/file_system/file_system_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 72e1827364978ce76b3f1f140eb86a8a60fae478..6755620a8df141d234e62ab55012313215008da8 100644
--- a/chrome/browser/download/download_target_determiner_unittest.cc
+++ b/chrome/browser/download/download_target_determiner_unittest.cc
@@ -365,8 +365,9 @@ 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));
+ base::CreateFilePathValue(path).release());
}
void DownloadTargetDeterminerTest::SetPromptForDownload(bool prompt) {
« no previous file with comments | « cc/quads/nine_patch_generator.cc ('k') | chrome/browser/extensions/api/file_system/file_system_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698