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

Unified Diff: chrome/browser/extensions/extension_management_test_util.h

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/extensions/extension_management_test_util.h
diff --git a/chrome/browser/extensions/extension_management_test_util.h b/chrome/browser/extensions/extension_management_test_util.h
index d0b6bedbe5101c80a1c8dffd8043a6e9aa606367..30b1cd1b274958d3a408e2b4410f394c746ca0f3 100644
--- a/chrome/browser/extensions/extension_management_test_util.h
+++ b/chrome/browser/extensions/extension_management_test_util.h
@@ -119,8 +119,7 @@ class ExtensionManagementPrefUpdater
}
virtual ~ExtensionManagementPrefUpdater() {
- service_->SetManagedPref(pref_names::kExtensionManagement,
- TakePref().release());
+ service_->SetManagedPref(pref_names::kExtensionManagement, TakePref());
}
private:

Powered by Google App Engine
This is Rietveld 408576698