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

Unified Diff: components/ntp_snippets/remote/ntp_snippets_database.cc

Issue 2449873003: [NTP Snippets] Another round of clang-tidy cleanups (Closed)
Patch Set: 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: components/ntp_snippets/remote/ntp_snippets_database.cc
diff --git a/components/ntp_snippets/remote/ntp_snippets_database.cc b/components/ntp_snippets/remote/ntp_snippets_database.cc
index cd3cc5a003c39a65ef2ea280fcb663c94f0c90f8..32ae5e2eabc02061208f5c33c4f1aa125f713ce7 100644
--- a/components/ntp_snippets/remote/ntp_snippets_database.cc
+++ b/components/ntp_snippets/remote/ntp_snippets_database.cc
@@ -95,12 +95,11 @@ void NTPSnippetsDatabase::DeleteSnippet(const std::string& snippet_id) {
}
void NTPSnippetsDatabase::DeleteSnippets(
- std::unique_ptr<std::vector<std::string>> keys_to_remove) {
+ std::unique_ptr<std::vector<std::string>> snippet_ids) {
DCHECK(IsInitialized());
std::unique_ptr<KeyEntryVector> entries_to_save(new KeyEntryVector());
- database_->UpdateEntries(std::move(entries_to_save),
- std::move(keys_to_remove),
+ database_->UpdateEntries(std::move(entries_to_save), std::move(snippet_ids),
base::Bind(&NTPSnippetsDatabase::OnDatabaseSaved,
weak_ptr_factory_.GetWeakPtr()));
}
@@ -135,10 +134,10 @@ void NTPSnippetsDatabase::DeleteImage(const std::string& snippet_id) {
}
void NTPSnippetsDatabase::DeleteImages(
- std::unique_ptr<std::vector<std::string>> keys_to_remove) {
+ std::unique_ptr<std::vector<std::string>> snippet_ids) {
DCHECK(IsInitialized());
image_database_->UpdateEntries(
- base::MakeUnique<ImageKeyEntryVector>(), std::move(keys_to_remove),
+ base::MakeUnique<ImageKeyEntryVector>(), std::move(snippet_ids),
base::Bind(&NTPSnippetsDatabase::OnImageDatabaseSaved,
weak_ptr_factory_.GetWeakPtr()));
}

Powered by Google App Engine
This is Rietveld 408576698