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

Unified Diff: components/subresource_filter/core/browser/ruleset_service_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/subresource_filter/core/browser/ruleset_service_unittest.cc
diff --git a/components/subresource_filter/core/browser/ruleset_service_unittest.cc b/components/subresource_filter/core/browser/ruleset_service_unittest.cc
index bd44816a46dd5f3c50c1d492a879a27a35a79dd4..272ac1564a48404b193f0f0ce2a332312b00666f 100644
--- a/components/subresource_filter/core/browser/ruleset_service_unittest.cc
+++ b/components/subresource_filter/core/browser/ruleset_service_unittest.cc
@@ -151,8 +151,8 @@ class SubresourceFilteringRulesetServiceTest : public ::testing::Test {
}
std::unique_ptr<RulesetService> CreateRulesetService() {
- return base::WrapUnique(
- new RulesetService(&pref_service_, task_runner_, base_dir()));
+ return base::MakeUnique<RulesetService>(&pref_service_, task_runner_,
+ base_dir());
}
void ResetService(std::unique_ptr<RulesetService> new_service = nullptr) {

Powered by Google App Engine
This is Rietveld 408576698