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

Unified Diff: chrome/browser/ui/search_engines/template_url_table_model.h

Issue 2442953002: Remove stl_util's deletion function use from chrome/. (Closed)
Patch Set: fix Created 4 years, 2 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: chrome/browser/ui/search_engines/template_url_table_model.h
diff --git a/chrome/browser/ui/search_engines/template_url_table_model.h b/chrome/browser/ui/search_engines/template_url_table_model.h
index bfd90ed321288e89a75cc31c70ecd5c689b06db3..4bc76e7d4f4fe0f4e3a304904e212bfa9e97c97b 100644
--- a/chrome/browser/ui/search_engines/template_url_table_model.h
+++ b/chrome/browser/ui/search_engines/template_url_table_model.h
@@ -115,13 +115,13 @@ class TemplateURLTableModel : public ui::TableModel,
// Removes the entry at |index| from |entries_| and returns the removed item.
std::unique_ptr<ModelEntry> RemoveEntry(int index);
- // Adds |entry| to |entries_| at |index| and takes ownership.
+ // Adds |entry| to |entries_| at |index|.
void AddEntry(int index, std::unique_ptr<ModelEntry> entry);
ui::TableModelObserver* observer_;
// The entries.
- std::vector<ModelEntry*> entries_;
+ std::vector<std::unique_ptr<ModelEntry>> entries_;
// The model we're displaying entries from.
TemplateURLService* template_url_service_;
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_service.cc ('k') | chrome/browser/ui/search_engines/template_url_table_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698