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

Unified Diff: components/dom_distiller/core/distillable_page_detector_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/dom_distiller/core/distillable_page_detector_unittest.cc
diff --git a/components/dom_distiller/core/distillable_page_detector_unittest.cc b/components/dom_distiller/core/distillable_page_detector_unittest.cc
index fc51fc968c5704668947bb4dd0865bf29afd413f..d56be15d249f8e3a2b413b9b559fc38aa374295e 100644
--- a/components/dom_distiller/core/distillable_page_detector_unittest.cc
+++ b/components/dom_distiller/core/distillable_page_detector_unittest.cc
@@ -30,8 +30,8 @@ class Builder {
}
proto_.set_num_features(num_features);
proto_.set_num_stumps(proto_.stump_size());
- return base::WrapUnique(new DistillablePageDetector(
- base::WrapUnique(new AdaBoostProto(proto_))));
+ return base::MakeUnique<DistillablePageDetector>(
+ base::WrapUnique(new AdaBoostProto(proto_)));
}
private:

Powered by Google App Engine
This is Rietveld 408576698