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

Unified Diff: chrome/browser/chromeos/policy/configuration_policy_handler_chromeos_unittest.cc

Issue 2765363004: Stop passing raw pointers to DictionaryValue::Set, part 2 (Closed)
Patch Set: Fix 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/chromeos/policy/configuration_policy_handler_chromeos_unittest.cc
diff --git a/chrome/browser/chromeos/policy/configuration_policy_handler_chromeos_unittest.cc b/chrome/browser/chromeos/policy/configuration_policy_handler_chromeos_unittest.cc
index 3639151f174ac71ef343c81b57cef5e25f099348..60aa9525d1915dc9e45ebfd7840587414ae70278 100644
--- a/chrome/browser/chromeos/policy/configuration_policy_handler_chromeos_unittest.cc
+++ b/chrome/browser/chromeos/policy/configuration_policy_handler_chromeos_unittest.cc
@@ -319,7 +319,8 @@ TEST(PinnedLauncherAppsPolicyHandler, PrefTranslation) {
base::Value entry1("abcdefghijklmnopabcdefghijklmnop");
auto entry1_dict = base::MakeUnique<base::DictionaryValue>();
- entry1_dict->Set(ash::launcher::kPinnedAppsPrefAppIDPath, entry1.DeepCopy());
+ entry1_dict->Set(ash::launcher::kPinnedAppsPrefAppIDPath,
+ entry1.CreateDeepCopy());
expected_pinned_apps.Append(std::move(entry1_dict));
list.Append(entry1.CreateDeepCopy());
policy_map.Set(key::kPinnedLauncherApps, POLICY_LEVEL_MANDATORY,

Powered by Google App Engine
This is Rietveld 408576698