| Index: chrome/browser/chromeos/contacts/contact_manager_stub.cc
|
| diff --git a/chrome/browser/chromeos/contacts/contact_manager_stub.cc b/chrome/browser/chromeos/contacts/contact_manager_stub.cc
|
| index fd5a86bfb153816321bfae5d3c33ec6d3fd20e70..822e2d8913ccd65b8646fac07deb7b58e0badd0b 100644
|
| --- a/chrome/browser/chromeos/contacts/contact_manager_stub.cc
|
| +++ b/chrome/browser/chromeos/contacts/contact_manager_stub.cc
|
| @@ -16,7 +16,10 @@ using content::BrowserThread;
|
|
|
| namespace contacts {
|
|
|
| -ContactManagerStub::ContactManagerStub(Profile* profile) : profile_(profile) {}
|
| +ContactManagerStub::ContactManagerStub(Profile* profile)
|
| + : profile_(profile),
|
| + ALLOW_THIS_IN_INITIALIZER_LIST(weak_ptr_factory_(this)) {
|
| +}
|
|
|
| ContactManagerStub::~ContactManagerStub() {}
|
|
|
| @@ -30,6 +33,11 @@ void ContactManagerStub::SetContacts(const ContactPointers& contacts) {
|
| test::CopyContacts(contacts, &contacts_);
|
| }
|
|
|
| +base::WeakPtr<ContactManagerInterface> ContactManagerStub::GetWeakPtr() {
|
| + CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
| + return weak_ptr_factory_.GetWeakPtr();
|
| +}
|
| +
|
| void ContactManagerStub::AddObserver(ContactManagerObserver* observer,
|
| Profile* profile) {
|
| CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
|
|