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

Unified Diff: ui/views/examples/tree_view_example.h

Issue 2379863002: Fix object ownership in ui/base/models. (Closed)
Patch Set: fix Created 4 years, 3 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
« no previous file with comments | « ui/views/controls/tree/tree_view_unittest.cc ('k') | ui/views/examples/tree_view_example.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/examples/tree_view_example.h
diff --git a/ui/views/examples/tree_view_example.h b/ui/views/examples/tree_view_example.h
index b9ced1984077b076c7502761e1a2f04ee9a50928..9ec5e1058fd4cc37d85f0a375bde03c9be88f49c 100644
--- a/ui/views/examples/tree_view_example.h
+++ b/ui/views/examples/tree_view_example.h
@@ -70,7 +70,7 @@ class VIEWS_EXAMPLES_EXPORT TreeViewExample
void ExecuteCommand(int command_id, int event_flags) override;
// The tree view to be tested.
- TreeView* tree_view_;
+ std::unique_ptr<TreeView> tree_view_;
// Control buttons to modify the model.
LabelButton* add_;
« no previous file with comments | « ui/views/controls/tree/tree_view_unittest.cc ('k') | ui/views/examples/tree_view_example.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698