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

Unified Diff: ash/shelf/shelf_view.h

Issue 1867223004: Convert //ash from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: ash/shelf/shelf_view.h
diff --git a/ash/shelf/shelf_view.h b/ash/shelf/shelf_view.h
index 6971374c45b14c311e3e0ee2a6833da3ee7535d1..d0f51db2b6bcc9dcac9d5bb9588b9d9bc0e3fda9 100644
--- a/ash/shelf/shelf_view.h
+++ b/ash/shelf/shelf_view.h
@@ -325,7 +325,7 @@ class ASH_EXPORT ShelfView : public views::View,
// Used to manage the set of active launcher buttons. There is a view per
// item in |model_|.
- scoped_ptr<views::ViewModel> view_model_;
+ std::unique_ptr<views::ViewModel> view_model_;
// Index of first visible launcher item.
int first_visible_index_;
@@ -334,11 +334,11 @@ class ASH_EXPORT ShelfView : public views::View,
// (does not go into overflow).
mutable int last_visible_index_;
- scoped_ptr<views::BoundsAnimator> bounds_animator_;
+ std::unique_ptr<views::BoundsAnimator> bounds_animator_;
OverflowButton* overflow_button_;
- scoped_ptr<OverflowBubble> overflow_bubble_;
+ std::unique_ptr<OverflowBubble> overflow_bubble_;
OverflowBubble* owner_overflow_bubble_;
@@ -361,9 +361,9 @@ class ASH_EXPORT ShelfView : public views::View,
// Used for the context menu of a particular item.
ShelfID context_menu_id_;
- scoped_ptr<views::FocusSearch> focus_search_;
+ std::unique_ptr<views::FocusSearch> focus_search_;
- scoped_ptr<views::MenuRunner> launcher_menu_runner_;
+ std::unique_ptr<views::MenuRunner> launcher_menu_runner_;
base::ObserverList<ShelfIconObserver> observers_;
@@ -403,7 +403,7 @@ class ASH_EXPORT ShelfView : public views::View,
// The image proxy for drag operations when a drag and drop host exists and
// the item can be dragged outside the app grid.
- scoped_ptr<ash::DragImageView> drag_image_;
+ std::unique_ptr<ash::DragImageView> drag_image_;
// The cursor offset to the middle of the dragged item.
gfx::Vector2d drag_image_offset_;

Powered by Google App Engine
This is Rietveld 408576698