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

Unified Diff: components/search_engines/template_url_service_util_unittest.cc

Issue 2257793002: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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: components/search_engines/template_url_service_util_unittest.cc
diff --git a/components/search_engines/template_url_service_util_unittest.cc b/components/search_engines/template_url_service_util_unittest.cc
index 1ab63212554da7774dcb2a363ba87cba1761dad5..eeab11666f6e13f8514f9b1b20d0bfd3364b8912 100644
--- a/components/search_engines/template_url_service_util_unittest.cc
+++ b/components/search_engines/template_url_service_util_unittest.cc
@@ -34,8 +34,8 @@ std::unique_ptr<TemplateURL> CreatePrepopulateTemplateURL(
int prepopulate_id,
const std::string& keyword,
TemplateURLID id) {
- return base::WrapUnique(new TemplateURL(
- *CreatePrepopulateTemplateURLData(prepopulate_id, keyword, id)));
+ return base::MakeUnique<TemplateURL>(
+ *CreatePrepopulateTemplateURLData(prepopulate_id, keyword, id));
}
}; // namespace

Powered by Google App Engine
This is Rietveld 408576698