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

Issue 10933127: contacts: Don't save deleted contacts to disk. (Closed)

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

Description

contacts: Don't save deleted contacts to disk. GoogleContactStore was previously passing all contacts to ContactDatabase regardless of their "deleted" flag. This change makes it instead not save already-deleted contacts, drop contacts when they become deleted, and track the most-recent last-updated time from a deleted contact (which is needed for incremental updates). BUG=128805 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=161159

Patch Set 1 #

Patch Set 2 : re-upload #

Patch Set 3 : add ContactDatabase test #

Patch Set 4 : remove ContactMap::GetMaxUpdateTime() #

Patch Set 5 : merge #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+389 lines, -86 lines) Patch
M chrome/browser/chromeos/contacts/contact.proto View 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/chromeos/contacts/contact_database.h View 5 chunks +14 lines, -8 lines 1 comment Download
M chrome/browser/chromeos/contacts/contact_database.cc View 5 chunks +15 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/contacts/contact_database_unittest.cc View 1 2 9 chunks +120 lines, -10 lines 0 comments Download
M chrome/browser/chromeos/contacts/contact_map.h View 1 2 3 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/contacts/contact_map.cc View 1 2 3 2 chunks +9 lines, -14 lines 0 comments Download
M chrome/browser/chromeos/contacts/contact_map_unittest.cc View 1 2 3 5 chunks +19 lines, -19 lines 0 comments Download
chrome/browser/chromeos/contacts/fake_contact_database.h View 3 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/contacts/fake_contact_database.cc View 3 chunks +15 lines, -8 lines 0 comments Download
M chrome/browser/chromeos/contacts/google_contact_store.h View 1 2 3 2 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/chromeos/contacts/google_contact_store.cc View 1 2 3 6 chunks +43 lines, -11 lines 0 comments Download
M chrome/browser/chromeos/contacts/google_contact_store_unittest.cc View 1 chunk +119 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_contacts_service_stub.h View 2 chunks +11 lines, -1 line 0 comments Download
M chrome/browser/chromeos/gdata/gdata_contacts_service_stub.cc View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Daniel Erat
8 years, 3 months ago (2012-09-17 18:05:09 UTC) #1
satorux1
I'm terribly sorry for the super belated response. Somehow I missed this. LGTM
8 years, 2 months ago (2012-10-10 01:44:17 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/derat@chromium.org/10933127/6002
8 years, 2 months ago (2012-10-10 17:46:54 UTC) #3
tfarina
http://codereview.chromium.org/10933127/diff/6002/chrome/browser/chromeos/contacts/contact_database.h File chrome/browser/chromeos/contacts/contact_database.h (right): http://codereview.chromium.org/10933127/diff/6002/chrome/browser/chromeos/contacts/contact_database.h#newcode45 chrome/browser/chromeos/contacts/contact_database.h:45: ContactDatabaseInterface() {} This constructor is unnecessary, you can't allocate ...
8 years, 2 months ago (2012-10-10 19:44:39 UTC) #4
commit-bot: I haz the power
Change committed as 161159
8 years, 2 months ago (2012-10-10 19:48:04 UTC) #5
Daniel Erat
8 years, 2 months ago (2012-10-10 22:03:25 UTC) #6

Powered by Google App Engine
This is Rietveld 408576698