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

Unified Diff: ui/views/examples/label_example.cc

Issue 1455333002: views: Remove a few usages of the deprecated ScopedVector. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/examples/label_example.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/examples/label_example.cc
diff --git a/ui/views/examples/label_example.cc b/ui/views/examples/label_example.cc
index 689bcfb6bd2e9cc0789f9c25aa7d4cfa5aef1371..a496ba7a89b3987490af17afd097067dd87d835f 100644
--- a/ui/views/examples/label_example.cc
+++ b/ui/views/examples/label_example.cc
@@ -209,7 +209,7 @@ Combobox* LabelExample::AddCombobox(GridLayout* layout,
layout->StartRow(0, 0);
layout->AddView(new Label(base::ASCIIToUTF16(name)));
ExampleComboboxModel* model = new ExampleComboboxModel(strings, count);
- example_combobox_models_.push_back(model);
+ example_combobox_models_.push_back(make_scoped_ptr(model));
Combobox* combobox = new Combobox(model);
combobox->SetSelectedIndex(0);
combobox->set_listener(this);
« no previous file with comments | « ui/views/examples/label_example.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698