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

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

Issue 10850033: contacts: Add ContactStoreFactory and FakeContactStore. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add missing clear() call in FakeContactStore 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.h
diff --git a/chrome/browser/chromeos/contacts/google_contact_store.h b/chrome/browser/chromeos/contacts/google_contact_store.h
index 9876e826da948da225d05fa27c16412e9f45d91e..3823140e48f8c51cdc16670238791d7b97f0dce5 100644
--- a/chrome/browser/chromeos/contacts/google_contact_store.h
+++ b/chrome/browser/chromeos/contacts/google_contact_store.h
@@ -65,9 +65,8 @@ class GoogleContactStore : public ContactStore {
explicit GoogleContactStore(Profile* profile);
virtual ~GoogleContactStore();
- void Init();
-
// ContactStore implementation:
+ virtual void Init() OVERRIDE;
virtual void AppendContacts(ContactPointers* contacts_out) OVERRIDE;
virtual const Contact* GetContactByProviderId(
const std::string& provider_id) OVERRIDE;
@@ -162,6 +161,19 @@ class GoogleContactStore : public ContactStore {
DISALLOW_COPY_AND_ASSIGN(GoogleContactStore);
};
+// ContactStoreFactory implementation that returns GoogleContactStores.
+class GoogleContactStoreFactory : public ContactStoreFactory {
+ public:
+ GoogleContactStoreFactory();
+ virtual ~GoogleContactStoreFactory();
+
+ // ContactStoreFactory implementation:
+ virtual ContactStore* CreateContactStore(Profile* profile) OVERRIDE;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(GoogleContactStoreFactory);
+};
+
} // namespace contacts
#endif // CHROME_BROWSER_CHROMEOS_CONTACTS_GOOGLE_CONTACT_STORE_H_

Powered by Google App Engine
This is Rietveld 408576698