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

Unified Diff: ios/chrome/browser/search_engines/search_engines_util.cc

Issue 2290503003: Remove use of stl_util in search_engines. (Closed)
Patch Set: fix broken test Created 4 years, 3 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: ios/chrome/browser/search_engines/search_engines_util.cc
diff --git a/ios/chrome/browser/search_engines/search_engines_util.cc b/ios/chrome/browser/search_engines/search_engines_util.cc
index d399f0818d85fb2a42cb2dc99edfbe47c9d9e188..afd94e08553005eccf9f5fb042e2d90789c2a787 100644
--- a/ios/chrome/browser/search_engines/search_engines_util.cc
+++ b/ios/chrome/browser/search_engines/search_engines_util.cc
@@ -7,6 +7,7 @@
#include <stddef.h>
#include "base/location.h"
+#include "base/memory/ptr_util.h"
#include "base/single_thread_task_runner.h"
#include "base/threading/thread_task_runner_handle.h"
#include "components/prefs/pref_service.h"
@@ -52,7 +53,7 @@ void UpdateSearchEngine(TemplateURLService* service) {
while (it != new_engines.end()) {
if ((*it)->prepopulate_id != kGoogleEnginePrepopulatedId) {
// service->Add takes ownership on Added TemplateURL.
- service->Add(new TemplateURL(**it));
+ service->Add(base::MakeUnique<TemplateURL>(**it));
it = new_engines.weak_erase(it);
} else {
++it;

Powered by Google App Engine
This is Rietveld 408576698