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

Unified Diff: ui/message_center/views/toast_contents_view.h

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/message_center/views/toast_contents_view.h
diff --git a/ui/message_center/views/toast_contents_view.h b/ui/message_center/views/toast_contents_view.h
index cb6209294564aac14a346ac9ee5f01bfe00c6b18..bd488bea20050adc12f959bbce514e19d42dae50 100644
--- a/ui/message_center/views/toast_contents_view.h
+++ b/ui/message_center/views/toast_contents_view.h
@@ -83,7 +83,7 @@ class ToastContentsView : public views::WidgetDelegateView,
void ClickOnNotification(const std::string& notification_id) override;
void RemoveNotification(const std::string& notification_id,
bool by_user) override;
- scoped_ptr<ui::MenuModel> CreateMenuModel(
+ std::unique_ptr<ui::MenuModel> CreateMenuModel(
const NotifierId& notifier_id,
const base::string16& display_source) override;
bool HasClickedListener(const std::string& notification_id) override;
@@ -122,8 +122,8 @@ class ToastContentsView : public views::WidgetDelegateView,
// Id if the corresponding Notification.
std::string id_;
- scoped_ptr<gfx::SlideAnimation> bounds_animation_;
- scoped_ptr<gfx::SlideAnimation> fade_animation_;
+ std::unique_ptr<gfx::SlideAnimation> bounds_animation_;
+ std::unique_ptr<gfx::SlideAnimation> fade_animation_;
gfx::Rect animated_bounds_start_;
gfx::Rect animated_bounds_end_;
« no previous file with comments | « ui/message_center/views/notifier_settings_view_unittest.cc ('k') | ui/message_center/views/toast_contents_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698