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

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

Issue 1550053002: Convert Pass()→std::move() in //chrome/browser/ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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.cc
diff --git a/chrome/browser/ui/search_engines/template_url_table_model.cc b/chrome/browser/ui/search_engines/template_url_table_model.cc
index 83023af856cbcdffd6fc5722198c1814c0d0ccf5..ed72587c1a60da8ad8f1b87bf04a084343b6a609 100644
--- a/chrome/browser/ui/search_engines/template_url_table_model.cc
+++ b/chrome/browser/ui/search_engines/template_url_table_model.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/ui/search_engines/template_url_table_model.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/i18n/rtl.h"
#include "base/macros.h"
@@ -268,7 +270,7 @@ void TemplateURLTableModel::Add(int index,
template_url_service_->Add(turl);
scoped_ptr<ModelEntry> entry(new ModelEntry(this, turl));
template_url_service_->AddObserver(this);
- AddEntry(index, entry.Pass());
+ AddEntry(index, std::move(entry));
}
void TemplateURLTableModel::ModifyTemplateURL(int index,
@@ -317,7 +319,7 @@ int TemplateURLTableModel::MoveToMainGroup(int index) {
scoped_ptr<ModelEntry> current_entry(RemoveEntry(index));
const int new_index = last_search_engine_index_++;
- AddEntry(new_index, current_entry.Pass());
+ AddEntry(new_index, std::move(current_entry));
return new_index;
}
@@ -381,7 +383,7 @@ TemplateURLTableModel::RemoveEntry(int index) {
--last_other_engine_index_;
if (observer_)
observer_->OnItemsRemoved(index, 1);
- return entry.Pass();
+ return entry;
}
void TemplateURLTableModel::AddEntry(int index, scoped_ptr<ModelEntry> entry) {

Powered by Google App Engine
This is Rietveld 408576698