| 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..c51fca472026393bfbe31cbd295498b4eade6462 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,20 @@ 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 bool CanCreateContactStoreForProfile(Profile* profile) OVERRIDE;
|
| + virtual ContactStore* CreateContactStore(Profile* profile) OVERRIDE;
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(GoogleContactStoreFactory);
|
| +};
|
| +
|
| } // namespace contacts
|
|
|
| #endif // CHROME_BROWSER_CHROMEOS_CONTACTS_GOOGLE_CONTACT_STORE_H_
|
|
|