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

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

Issue 10905033: contacts: Add ContactMap class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: apply review feedback Created 8 years, 3 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/fake_contact_database.h
diff --git a/chrome/browser/chromeos/contacts/fake_contact_database.h b/chrome/browser/chromeos/contacts/fake_contact_database.h
index 952a833bfe19cf8f430825960ff3eaf1ada2bd72..1f70ab6e36b28e95f4101710b7696e5f66bafd1d 100644
--- a/chrome/browser/chromeos/contacts/fake_contact_database.h
+++ b/chrome/browser/chromeos/contacts/fake_contact_database.h
@@ -8,6 +8,7 @@
#include "chrome/browser/chromeos/contacts/contact_database.h"
#include "chrome/browser/chromeos/contacts/contact.pb.h"
+#include "chrome/browser/chromeos/contacts/contact_map.h"
namespace contacts {
@@ -16,7 +17,7 @@ class FakeContactDatabase : public ContactDatabaseInterface {
public:
FakeContactDatabase();
- const ScopedVector<Contact>& contacts() const { return contacts_; }
+ const ContactMap& contacts() const { return contacts_; }
void set_init_success(bool success) { init_success_ = success; }
void set_save_success(bool success) { save_success_ = success; }
@@ -57,7 +58,7 @@ class FakeContactDatabase : public ContactDatabaseInterface {
int num_saved_contacts_;
// Currently-stored contacts and metadata.
- ScopedVector<Contact> contacts_;
+ ContactMap contacts_;
UpdateMetadata metadata_;
DISALLOW_COPY_AND_ASSIGN(FakeContactDatabase);

Powered by Google App Engine
This is Rietveld 408576698