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

Unified Diff: chrome/browser/ui/search/instant_test_utils.cc

Issue 2290503003: Remove use of stl_util in search_engines. (Closed)
Patch Set: ios for reals Created 4 years, 4 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/ui/search/instant_test_utils.cc
diff --git a/chrome/browser/ui/search/instant_test_utils.cc b/chrome/browser/ui/search/instant_test_utils.cc
index b8dc7ae1aa053d7ed97e9700a94aaf71e68fa3a4..d76822d02728e0f390c5b247a7f353d0f82b24f4 100644
--- a/chrome/browser/ui/search/instant_test_utils.cc
+++ b/chrome/browser/ui/search/instant_test_utils.cc
@@ -7,6 +7,7 @@
#include <stddef.h>
#include "base/command_line.h"
+#include "base/memory/ptr_util.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/chrome_notification_types.h"
#include "chrome/browser/profiles/profile.h"
@@ -64,7 +65,7 @@ void InstantTestBase::SetupInstant(Browser* browser) {
data.search_terms_replacement_key = "strk";
TemplateURL* template_url = new TemplateURL(data);
- service->Add(template_url); // Takes ownership of |template_url|.
+ service->Add(base::WrapUnique(template_url));
service->SetUserSelectedDefaultSearchProvider(template_url);
}
@@ -79,7 +80,7 @@ void InstantTestBase::SetInstantURL(const std::string& url) {
data.instant_url = url;
TemplateURL* template_url = new TemplateURL(data);
- service->Add(template_url); // Takes ownership of |template_url|.
+ service->Add(base::WrapUnique(template_url));
service->SetUserSelectedDefaultSearchProvider(template_url);
}

Powered by Google App Engine
This is Rietveld 408576698