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), |