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

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

Issue 10882017: contacts: Make GoogleContactStore own GDataContactsService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/contacts/google_contact_store.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 b8f2f41bb6e925bc7bbed9622ecdfb7ce6e8c9bd..27ca0886c154e194a036ea27ec0a37dc92eee77f 100644
--- a/chrome/browser/chromeos/contacts/google_contact_store.h
+++ b/chrome/browser/chromeos/contacts/google_contact_store.h
@@ -53,7 +53,8 @@ class GoogleContactStore
// Takes ownership of |db|. Must be called before Init().
void SetDatabase(ContactDatabaseInterface* db);
- // Takes ownership of |service|. Must be called before Init().
+ // Takes ownership of |service|. Must be called before Init(). The caller is
+ // responsible for calling |service|'s Initialize() method.
void SetGDataService(gdata::GDataContactsServiceInterface* service);
// Triggers an update, similar to what happens when the update timer fires.
@@ -143,12 +144,12 @@ class GoogleContactStore
// by Google).
base::Time last_contact_update_time_;
+ // Used to download contacts.
+ scoped_ptr<gdata::GDataContactsServiceInterface> gdata_service_;
kochi 2012/08/24 01:40:51 Maybe contacts_service_ a better name?
Daniel Erat 2012/08/24 16:52:30 I think I still prefer leaving gdata in the name -
+
// Used to save contacts to disk and load them at startup. Owns the object.
ContactDatabaseInterface* db_;
- // If non-NULL, used in place of the real GData service to download contacts.
- scoped_ptr<gdata::GDataContactsServiceInterface> gdata_service_for_testing_;
-
// Used to schedule calls to UpdateContacts().
base::OneShotTimer<GoogleContactStore> update_timer_;
« no previous file with comments | « no previous file | chrome/browser/chromeos/contacts/google_contact_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698