|
|
contacts: Add ContactMap class.
This is a simple map from contact ID to Contact object. I'm
moving the merging code from GoogleContactStore into it, and
making both GoogleContactStore and FakeContactDatabase
(which formerly had ugly code that used a vector of
contacts) use it.
A later change will make GoogleContactStore drop deleted
contacts (hanging on to them indefinitely seems ugly).
While working on that, I noticed that FakeContactDatabase's
vector is lacking for supporting that and figured that it'd
be best to make it share GoogleContactStore's existing
merging code.
BUG= 128805
TEST=none
TBR=sky@chromium.org
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=155634
Total comments: 8
Total comments: 8
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+298 lines, -78 lines) |
Patch |
 |
A |
chrome/browser/chromeos/contacts/contact_map.h
|
View
|
1
2
3
|
1 chunk |
+72 lines, -0 lines |
4 comments
|
Download
|
 |
A |
chrome/browser/chromeos/contacts/contact_map.cc
|
View
|
1
2
3
|
1 chunk |
+68 lines, -0 lines |
2 comments
|
Download
|
 |
A |
chrome/browser/chromeos/contacts/contact_map_unittest.cc
|
View
|
1
2
3
|
1 chunk |
+107 lines, -0 lines |
2 comments
|
Download
|
 |
M |
chrome/browser/chromeos/contacts/contact_test_util.h
|
View
|
|
2 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/contacts/contact_test_util.cc
|
View
|
|
2 chunks |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/contacts/fake_contact_database.h
|
View
|
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/contacts/fake_contact_database.cc
|
View
|
1
2
3
|
5 chunks |
+12 lines, -22 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/contacts/google_contact_store.h
|
View
|
|
3 chunks |
+1 line, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/contacts/google_contact_store.cc
|
View
|
1
2
3
|
3 chunks |
+8 lines, -41 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/contacts/google_contact_store_unittest.cc
|
View
|
|
5 chunks |
+8 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_browser_chromeos.gypi
|
View
|
1
2
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_tests.gypi
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
Total messages: 12 (0 generated)
|