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

Unified Diff: chrome/browser/chromeos/contacts/fake_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/fake_contact_store.cc
diff --git a/chrome/browser/chromeos/contacts/fake_contact_store.cc b/chrome/browser/chromeos/contacts/fake_contact_store.cc
index 68a1bd1bbbd3ee177c6550d5edd083d0f7b21b2d..453391744684661180e049c364429286e7316911 100644
--- a/chrome/browser/chromeos/contacts/fake_contact_store.cc
+++ b/chrome/browser/chromeos/contacts/fake_contact_store.cc
@@ -29,7 +29,7 @@ void FakeContactStore::SetContacts(const ContactPointers& contacts) {
contacts_.clear();
for (ContactPointers::const_iterator it = contacts.begin();
it != contacts.end(); ++it) {
- contacts_[(*it)->provider_id()] = new Contact(**it);
+ contacts_[(*it)->contact_id()] = new Contact(**it);
}
}
@@ -51,9 +51,8 @@ void FakeContactStore::AppendContacts(ContactPointers* contacts_out) {
}
}
-const Contact* FakeContactStore::GetContactByProviderId(
- const std::string& provider_id) {
- ContactMap::const_iterator it = contacts_.find(provider_id);
+const Contact* FakeContactStore::GetContactById(const std::string& contact_id) {
+ ContactMap::const_iterator it = contacts_.find(contact_id);
return (it != contacts_.end() && !it->second->deleted()) ? it->second : NULL;
}
« no previous file with comments | « chrome/browser/chromeos/contacts/fake_contact_store.h ('k') | chrome/browser/chromeos/contacts/google_contact_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698