Index: chrome/browser/ui/search/new_tab_page_interceptor_browsertest.cc |
diff --git a/chrome/browser/ui/search/new_tab_page_interceptor_browsertest.cc b/chrome/browser/ui/search/new_tab_page_interceptor_browsertest.cc |
index 1a2045d2c1867b35245cb571b9739938928b819a..6bc71b942b67befa73d638229c4953c8272e1110 100644 |
--- a/chrome/browser/ui/search/new_tab_page_interceptor_browsertest.cc |
+++ b/chrome/browser/ui/search/new_tab_page_interceptor_browsertest.cc |
@@ -3,6 +3,7 @@ |
// found in the LICENSE file. |
#include "base/files/file_path.h" |
+#include "base/memory/ptr_util.h" |
#include "base/strings/utf_string_conversions.h" |
#include "chrome/browser/browser_process.h" |
#include "chrome/browser/search/search.h" |
@@ -59,7 +60,7 @@ class NewTabPageInterceptorTest : public InProcessBrowserTest { |
data.new_tab_url = base_url + new_tab_path; |
TemplateURL* template_url = new TemplateURL(data); |
// Takes ownership of |template_url|. |
Peter Kasting
2016/08/31 04:12:56
Nit: Comment is now redundant.
Avi (use Gerrit)
2016/09/01 00:34:26
Done.
|
- template_url_service->Add(template_url); |
+ template_url_service->Add(base::WrapUnique(template_url)); |
template_url_service->SetUserSelectedDefaultSearchProvider(template_url); |
} |