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

Unified Diff: chrome/browser/search/instant_service_unittest.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/search/instant_service_unittest.cc
diff --git a/chrome/browser/search/instant_service_unittest.cc b/chrome/browser/search/instant_service_unittest.cc
index bab485bbecab5744ecf7f1d8c331d49879a1afcf..60970fdd027da06f4332c9cd7af8b7fa4b0e9029 100644
--- a/chrome/browser/search/instant_service_unittest.cc
+++ b/chrome/browser/search/instant_service_unittest.cc
@@ -9,6 +9,7 @@
#include <tuple>
#include <vector>
+#include "base/memory/ptr_util.h"
#include "base/metrics/field_trial.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
@@ -133,7 +134,7 @@ TEST_F(InstantServiceEnabledTest,
data.SetURL("https://foobar.com/url?bar={searchTerms}");
TemplateURL* template_url = new TemplateURL(data);
// Takes ownership of |template_url|.
Peter Kasting 2016/08/31 04:12:55 Nit: Comment is now redundant.
Avi (use Gerrit) 2016/09/01 00:34:25 Done.
- template_url_service_->Add(template_url);
+ template_url_service_->Add(base::WrapUnique(template_url));
template_url_service_->SetUserSelectedDefaultSearchProvider(template_url);
EXPECT_EQ(static_cast<InstantSearchPrerenderer*>(NULL),

Powered by Google App Engine
This is Rietveld 408576698