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

Unified Diff: ui/views/animation/ink_drop_animation_controller_factory.cc

Issue 1868363002: Replace scoped_ptr with std::unique_ptr in //ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scopedptrcc
Patch Set: scopedptrui: rebase-make_scoped_ptr Created 4 years, 8 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: ui/views/animation/ink_drop_animation_controller_factory.cc
diff --git a/ui/views/animation/ink_drop_animation_controller_factory.cc b/ui/views/animation/ink_drop_animation_controller_factory.cc
index 19bae013b571ec2255fc21fc7ceeb49019401c3b..17bc202a48343f7b4a3b85c342a82539d009c208 100644
--- a/ui/views/animation/ink_drop_animation_controller_factory.cc
+++ b/ui/views/animation/ink_drop_animation_controller_factory.cc
@@ -59,15 +59,15 @@ InkDropAnimationControllerFactory::InkDropAnimationControllerFactory() {}
InkDropAnimationControllerFactory::~InkDropAnimationControllerFactory() {}
-scoped_ptr<InkDropAnimationController>
+std::unique_ptr<InkDropAnimationController>
InkDropAnimationControllerFactory::CreateInkDropAnimationController(
InkDropHost* ink_drop_host) {
if (ui::MaterialDesignController::IsModeMaterial()) {
- return scoped_ptr<InkDropAnimationController>(
+ return std::unique_ptr<InkDropAnimationController>(
new InkDropAnimationControllerImpl(ink_drop_host));
}
- return scoped_ptr<InkDropAnimationController>(
+ return std::unique_ptr<InkDropAnimationController>(
new InkDropAnimationControllerStub());
}

Powered by Google App Engine
This is Rietveld 408576698