Index: chrome/browser/chromeos/printing/printers_manager_unittest.cc |
diff --git a/chrome/browser/chromeos/printing/printers_manager_unittest.cc b/chrome/browser/chromeos/printing/printers_manager_unittest.cc |
index 616cb8522cff2843ec019db62d2b5f53563bf98c..cf874e327f3943396d72eaf559de6c34f961cc5b 100644 |
--- a/chrome/browser/chromeos/printing/printers_manager_unittest.cc |
+++ b/chrome/browser/chromeos/printing/printers_manager_unittest.cc |
@@ -196,7 +196,7 @@ TEST_F(PrintersManagerTest, RecommendedPrinters) { |
sync_preferences::TestingPrefServiceSyncable* prefs = |
profile_->GetTestingPrefService(); |
// TestingPrefSyncableService assumes ownership of |value|. |
- prefs->SetManagedPref(prefs::kRecommendedNativePrinters, value.release()); |
+ prefs->SetManagedPref(prefs::kRecommendedNativePrinters, std::move(value)); |
auto printers = manager_->GetRecommendedPrinters(); |
ASSERT_EQ(2U, printers.size()); |
@@ -213,7 +213,7 @@ TEST_F(PrintersManagerTest, GetRecommendedPrinter) { |
sync_preferences::TestingPrefServiceSyncable* prefs = |
profile_->GetTestingPrefService(); |
// TestingPrefSyncableService assumes ownership of |value|. |
- prefs->SetManagedPref(prefs::kRecommendedNativePrinters, value.release()); |
+ prefs->SetManagedPref(prefs::kRecommendedNativePrinters, std::move(value)); |
auto printers = manager_->GetRecommendedPrinters(); |