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

Unified Diff: chrome/browser/chromeos/contacts/fake_contact_store.cc

Issue 10831162: contacts: Add ContactManager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: diff against the correct branch Created 8 years, 4 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_store.cc
diff --git a/chrome/browser/chromeos/contacts/fake_contact_store.cc b/chrome/browser/chromeos/contacts/fake_contact_store.cc
index f61f6bd9a2428288218744d71d6f01bd77cd1fb2..68a1bd1bbbd3ee177c6550d5edd083d0f7b21b2d 100644
--- a/chrome/browser/chromeos/contacts/fake_contact_store.cc
+++ b/chrome/browser/chromeos/contacts/fake_contact_store.cc
@@ -78,7 +78,8 @@ FakeContactStoreFactory::~FakeContactStoreFactory() {
FakeContactStore* FakeContactStoreFactory::GetContactStoreForProfile(
Profile* profile) {
CHECK(profile);
- return stores_[profile];
+ ProfileStoreMap::const_iterator it = stores_.find(profile);
+ return it != stores_.end() ? it->second : NULL;
}
void FakeContactStoreFactory::RemoveStore(FakeContactStore* store) {

Powered by Google App Engine
This is Rietveld 408576698