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

Unified Diff: chrome/browser/chromeos/contacts/contact_database.cc

Issue 10827406: contacts: Rename provider_id to contact_id. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 8 years, 4 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/chromeos/contacts/contact_database.cc
diff --git a/chrome/browser/chromeos/contacts/contact_database.cc b/chrome/browser/chromeos/contacts/contact_database.cc
index da7bb88ae818069732f92fab8dee26593df02155..efe3a3d0cc2e4a82e60b8d38b917f5cdafbacc06 100644
--- a/chrome/browser/chromeos/contacts/contact_database.cc
+++ b/chrome/browser/chromeos/contacts/contact_database.cc
@@ -214,15 +214,15 @@ void ContactDatabase::SaveContactsFromTaskRunner(
for (ContactPointers::const_iterator it = contacts->begin();
it != contacts->end(); ++it) {
const contacts::Contact& contact = **it;
- if (contact.provider_id() == kUpdateMetadataKey) {
+ if (contact.contact_id() == kUpdateMetadataKey) {
LOG(WARNING) << "Skipping contact with reserved ID "
- << contact.provider_id();
+ << contact.contact_id();
continue;
}
- updates.Put(leveldb::Slice(contact.provider_id()),
+ updates.Put(leveldb::Slice(contact.contact_id()),
leveldb::Slice(contact.SerializeAsString()));
if (is_full_update)
- keys_to_delete.erase(contact.provider_id());
+ keys_to_delete.erase(contact.contact_id());
}
for (std::set<std::string>::const_iterator it = keys_to_delete.begin();
« no previous file with comments | « chrome/browser/chromeos/contacts/contact.proto ('k') | chrome/browser/chromeos/contacts/contact_database_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698