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

Unified Diff: chrome/browser/chromeos/contacts/google_contact_store.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/google_contact_store.cc
diff --git a/chrome/browser/chromeos/contacts/google_contact_store.cc b/chrome/browser/chromeos/contacts/google_contact_store.cc
index 1759a60aa0b8932ea94a9a91264eb06b81992872..6537a50115164366c79786fbde6320bb17d255af 100644
--- a/chrome/browser/chromeos/contacts/google_contact_store.cc
+++ b/chrome/browser/chromeos/contacts/google_contact_store.cc
@@ -123,10 +123,10 @@ void GoogleContactStore::AppendContacts(ContactPointers* contacts_out) {
}
}
-const Contact* GoogleContactStore::GetContactByProviderId(
- const std::string& provider_id) {
+const Contact* GoogleContactStore::GetContactById(
+ const std::string& contact_id) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
- ContactMap::const_iterator it = contacts_.find(provider_id);
+ ContactMap::const_iterator it = contacts_.find(contact_id);
return (it != contacts_.end() && !it->second->deleted()) ? it->second : NULL;
}
@@ -249,10 +249,10 @@ void GoogleContactStore::MergeContacts(
for (ScopedVector<Contact>::iterator it = updated_contacts->begin();
it != updated_contacts->end(); ++it) {
Contact* contact = *it;
- VLOG(1) << "Updating " << contact->provider_id();
- ContactMap::iterator map_it = contacts_.find(contact->provider_id());
+ VLOG(1) << "Updating " << contact->contact_id();
+ ContactMap::iterator map_it = contacts_.find(contact->contact_id());
if (map_it == contacts_.end()) {
- contacts_[contact->provider_id()] = contact;
+ contacts_[contact->contact_id()] = contact;
} else {
delete map_it->second;
map_it->second = contact;

Powered by Google App Engine
This is Rietveld 408576698