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

Unified Diff: components/search_engines/search_engines_test_util.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: components/search_engines/search_engines_test_util.cc
diff --git a/components/search_engines/search_engines_test_util.cc b/components/search_engines/search_engines_test_util.cc
index 1d54c7cce1d81721aff2bfb85c85d77687ca771b..b1b005d680ef5826f41a981881ead0b9c7a86d8b 100644
--- a/components/search_engines/search_engines_test_util.cc
+++ b/components/search_engines/search_engines_test_util.cc
@@ -4,6 +4,8 @@
#include "components/search_engines/search_engines_test_util.h"
+#include <utility>
+
#include "base/macros.h"
#include "base/memory/ptr_util.h"
#include "base/strings/utf_string_conversions.h"
@@ -66,7 +68,7 @@ void SetExtensionDefaultSearchInPrefs(
TemplateURLDataToDictionary(data);
prefs->SetExtensionPref(
DefaultSearchManager::kDefaultSearchProviderDataPrefName,
- entry.release());
+ std::move(entry));
}
void RemoveExtensionDefaultSearchFromPrefs(

Powered by Google App Engine
This is Rietveld 408576698