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

Issue 10829144: contacts: Add GoogleContactStore. (Closed)

Created:
8 years, 4 months ago by Daniel Erat
Modified:
8 years, 4 months ago
Reviewers:
satorux1
CC:
chromium-reviews, oshima+watch_chromium.org, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

contacts: Add GoogleContactStore. This class uses GDataContactsService to download contacts from Google and uses ContactDatabase to save them to disk. It also contains logic for periodically refreshing contacts. BUG=128805 TEST=none TBR=ben@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=149805

Patch Set 1 #

Patch Set 2 : minor updates #

Total comments: 20

Patch Set 3 : apply review feedback #

Total comments: 1

Patch Set 4 : condense private and protected blocks' #

Total comments: 3

Patch Set 5 : merge and switch an EXPECT_TRUE(... == NULL) to EXPECT_FALSE(...) #

Total comments: 1

Patch Set 6 : fix leaked contacts in GoogleContactStore::MergeContacts() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+976 lines, -6 lines) Patch
M chrome/browser/chromeos/contacts/contact_database.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
A chrome/browser/chromeos/contacts/contact_store.h View 1 1 chunk +43 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/contacts/contact_store_observer.h View 1 chunk +29 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/contacts/contact_test_util.cc View 1 2 3 4 5 1 chunk +2 lines, -5 lines 0 comments Download
A chrome/browser/chromeos/contacts/google_contact_store.h View 1 2 1 chunk +167 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/contacts/google_contact_store.cc View 1 2 3 4 5 1 chunk +353 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/contacts/google_contact_store_unittest.cc View 1 2 3 4 1 chunk +375 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Daniel Erat
This is the last of the big changes!
8 years, 4 months ago (2012-08-02 16:55:48 UTC) #1
satorux1
http://codereview.chromium.org/10829144/diff/2001/chrome/browser/chromeos/contacts/contact_store.h File chrome/browser/chromeos/contacts/contact_store.h (right): http://codereview.chromium.org/10829144/diff/2001/chrome/browser/chromeos/contacts/contact_store.h#newcode17 chrome/browser/chromeos/contacts/contact_store.h:17: class ContactStoreObserver; I thought we usually defined Observer as ...
8 years, 4 months ago (2012-08-02 22:21:25 UTC) #2
Daniel Erat
http://codereview.chromium.org/10829144/diff/2001/chrome/browser/chromeos/contacts/contact_store.h File chrome/browser/chromeos/contacts/contact_store.h (right): http://codereview.chromium.org/10829144/diff/2001/chrome/browser/chromeos/contacts/contact_store.h#newcode17 chrome/browser/chromeos/contacts/contact_store.h:17: class ContactStoreObserver; On 2012/08/02 22:21:25, satorux1 wrote: > I ...
8 years, 4 months ago (2012-08-02 23:23:18 UTC) #3
Daniel Erat
http://codereview.chromium.org/10829144/diff/10001/chrome/browser/chromeos/contacts/google_contact_store_unittest.cc File chrome/browser/chromeos/contacts/google_contact_store_unittest.cc (right): http://codereview.chromium.org/10829144/diff/10001/chrome/browser/chromeos/contacts/google_contact_store_unittest.cc#newcode74 chrome/browser/chromeos/contacts/google_contact_store_unittest.cc:74: MessageLoopForUI message_loop_; There's no real reason to make these ...
8 years, 4 months ago (2012-08-02 23:34:22 UTC) #4
satorux1
LGTM http://codereview.chromium.org/10829144/diff/2001/chrome/browser/chromeos/contacts/google_contact_store.cc File chrome/browser/chromeos/contacts/google_contact_store.cc (right): http://codereview.chromium.org/10829144/diff/2001/chrome/browser/chromeos/contacts/google_contact_store.cc#newcode30 chrome/browser/chromeos/contacts/google_contact_store.cc:30: FILE_PATH_LITERAL("Google Contacts"); On 2012/08/02 23:23:18, Daniel Erat wrote: ...
8 years, 4 months ago (2012-08-03 00:11:10 UTC) #5
satorux1
http://codereview.chromium.org/10829144/diff/3008/chrome/browser/chromeos/contacts/google_contact_store_unittest.cc File chrome/browser/chromeos/contacts/google_contact_store_unittest.cc (right): http://codereview.chromium.org/10829144/diff/3008/chrome/browser/chromeos/contacts/google_contact_store_unittest.cc#newcode273 chrome/browser/chromeos/contacts/google_contact_store_unittest.cc:273: EXPECT_TRUE(store_->GetContactByProviderId(kProviderId) == NULL); On 2012/08/03 00:11:10, satorux1 wrote: > ...
8 years, 4 months ago (2012-08-03 00:12:47 UTC) #6
Daniel Erat
http://codereview.chromium.org/10829144/diff/3008/chrome/browser/chromeos/contacts/google_contact_store_unittest.cc File chrome/browser/chromeos/contacts/google_contact_store_unittest.cc (right): http://codereview.chromium.org/10829144/diff/3008/chrome/browser/chromeos/contacts/google_contact_store_unittest.cc#newcode273 chrome/browser/chromeos/contacts/google_contact_store_unittest.cc:273: EXPECT_TRUE(store_->GetContactByProviderId(kProviderId) == NULL); On 2012/08/03 00:12:47, satorux1 wrote: > ...
8 years, 4 months ago (2012-08-03 00:22:04 UTC) #7
Daniel Erat
TBR ben for *.gypi
8 years, 4 months ago (2012-08-03 00:22:32 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/derat@chromium.org/10829144/6002
8 years, 4 months ago (2012-08-03 00:22:49 UTC) #9
Daniel Erat
Holding off while I try to figure out the source of some memory leaks reported ...
8 years, 4 months ago (2012-08-03 03:23:37 UTC) #10
Daniel Erat
http://codereview.chromium.org/10829144/diff/6002/chrome/browser/chromeos/contacts/google_contact_store.cc File chrome/browser/chromeos/contacts/google_contact_store.cc (right): http://codereview.chromium.org/10829144/diff/6002/chrome/browser/chromeos/contacts/google_contact_store.cc#newcode213 chrome/browser/chromeos/contacts/google_contact_store.cc:213: contacts_.clear(); Ugh, I looked right past this without seeing ...
8 years, 4 months ago (2012-08-03 04:53:31 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/derat@chromium.org/10829144/12
8 years, 4 months ago (2012-08-03 04:54:17 UTC) #12
commit-bot: I haz the power
8 years, 4 months ago (2012-08-03 07:27:23 UTC) #13
Change committed as 149805

Powered by Google App Engine
This is Rietveld 408576698