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

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

Issue 10933127: contacts: Don't save deleted contacts to disk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 8 years, 2 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
Index: chrome/browser/chromeos/contacts/contact_map.h
diff --git a/chrome/browser/chromeos/contacts/contact_map.h b/chrome/browser/chromeos/contacts/contact_map.h
index a726dddc6f302f9d8fc3a57d39947a11f250b0d6..22de98e7823ecd025466ba709d27c97ea31e3014 100644
--- a/chrome/browser/chromeos/contacts/contact_map.h
+++ b/chrome/browser/chromeos/contacts/contact_map.h
@@ -47,6 +47,9 @@ class ContactMap {
// isn't present.
const Contact* Find(const std::string& contact_id) const;
+ // Deletes the contact with ID |contact_id|.
+ void Erase(const std::string& contact_id);
+
// Deletes all contacts.
void Clear();
@@ -54,10 +57,6 @@ class ContactMap {
void Merge(scoped_ptr<ScopedVector<Contact> > updated_contacts,
DeletedContactPolicy policy);
- // Returns the maximum |update_time| value stored within a contact in
- // |contacts_|.
- base::Time GetMaxUpdateTime() const;
-
private:
Map contacts_;

Powered by Google App Engine
This is Rietveld 408576698