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

Unified Diff: chrome/browser/chromeos/contacts/fake_contact_store.h

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.h
diff --git a/chrome/browser/chromeos/contacts/fake_contact_store.h b/chrome/browser/chromeos/contacts/fake_contact_store.h
index 2a5dd01324aab4d20d10e21347d6811b5ccfea68..43004682941e8020513455060f302a77363b00ca 100644
--- a/chrome/browser/chromeos/contacts/fake_contact_store.h
+++ b/chrome/browser/chromeos/contacts/fake_contact_store.h
@@ -31,7 +31,7 @@ class FakeContactStore : public ContactStore {
virtual ~FakeContactStore();
// Makes an internal copy of |contacts| so they can be returned by
- // AppendContacts() and GetContactByProviderId().
+ // AppendContacts() and GetContactById().
void SetContacts(const ContactPointers& contacts);
// Invokes observers' OnContactsUpdated() methods.
@@ -40,13 +40,12 @@ class FakeContactStore : public ContactStore {
// ContactStore implementation:
virtual void Init() OVERRIDE;
virtual void AppendContacts(ContactPointers* contacts_out) OVERRIDE;
- virtual const Contact* GetContactByProviderId(
- const std::string& provider_id) OVERRIDE;
+ virtual const Contact* GetContactById(const std::string& contact_id) OVERRIDE;
virtual void AddObserver(ContactStoreObserver* observer) OVERRIDE;
virtual void RemoveObserver(ContactStoreObserver* observer) OVERRIDE;
private:
- // Map from a contact's provider ID to the contact itself.
+ // Map from a contact's ID to the contact itself.
typedef std::map<std::string, Contact*> ContactMap;
// Factory that created this store. Not owned.
« no previous file with comments | « chrome/browser/chromeos/contacts/fake_contact_database.cc ('k') | chrome/browser/chromeos/contacts/fake_contact_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698