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

Unified Diff: chrome/browser/chromeos/printing/printers_manager_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/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();

Powered by Google App Engine
This is Rietveld 408576698