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

Unified Diff: chrome/browser/search_engines/template_url_fetcher_unittest.cc

Issue 2290503003: Remove use of stl_util in search_engines. (Closed)
Patch Set: rebase 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_engines/template_url_fetcher_unittest.cc
diff --git a/chrome/browser/search_engines/template_url_fetcher_unittest.cc b/chrome/browser/search_engines/template_url_fetcher_unittest.cc
index d5a0b91f746a4494f12ccf5eea818315f37268fb..35ca95ce437b161a47f1dd6fb2f614aa6788a6bd 100644
--- a/chrome/browser/search_engines/template_url_fetcher_unittest.cc
+++ b/chrome/browser/search_engines/template_url_fetcher_unittest.cc
@@ -13,6 +13,7 @@
#include "base/callback_helpers.h"
#include "base/files/file_util.h"
#include "base/macros.h"
+#include "base/memory/ptr_util.h"
#include "base/message_loop/message_loop.h"
#include "base/path_service.h"
#include "base/run_loop.h"
@@ -229,7 +230,7 @@ TEST_F(TemplateURLFetcherTest, DuplicateKeywordsTest) {
data.SetShortName(keyword);
data.SetKeyword(keyword);
data.SetURL("http://example.com/");
- test_util()->model()->Add(new TemplateURL(data));
+ test_util()->model()->Add(base::MakeUnique<TemplateURL>(data));
test_util()->ChangeModelToLoadState();
EXPECT_TRUE(test_util()->model()->GetTemplateURLForKeyword(keyword));

Powered by Google App Engine
This is Rietveld 408576698