Index: chrome/browser/password_manager/password_store_x_unittest.cc |
diff --git a/chrome/browser/password_manager/password_store_x_unittest.cc b/chrome/browser/password_manager/password_store_x_unittest.cc |
index 55d2d3c5a40be8c607f96c15032b661bbe26c807..22471c2059189f4ea94068d00865ae9e31b74f12 100644 |
--- a/chrome/browser/password_manager/password_store_x_unittest.cc |
+++ b/chrome/browser/password_manager/password_store_x_unittest.cc |
@@ -331,7 +331,7 @@ TEST_P(PasswordStoreXTest, Notifications) { |
scoped_ptr<PasswordForm> form(CreatePasswordFormFromData(form_data)); |
scoped_refptr<DBThreadObserverHelper> helper = new DBThreadObserverHelper; |
- helper->Init(store); |
+ helper->Init(store.get()); |
const PasswordStoreChange expected_add_changes[] = { |
PasswordStoreChange(PasswordStoreChange::ADD, *form), |
@@ -339,7 +339,7 @@ TEST_P(PasswordStoreXTest, Notifications) { |
EXPECT_CALL(helper->observer(), |
Observe(int(chrome::NOTIFICATION_LOGINS_CHANGED), |
- content::Source<PasswordStore>(store), |
+ content::Source<PasswordStore>(store.get()), |
Property(&content::Details<const PasswordStoreChangeList>::ptr, |
Pointee(ElementsAreArray( |
expected_add_changes))))); |
@@ -363,7 +363,7 @@ TEST_P(PasswordStoreXTest, Notifications) { |
EXPECT_CALL(helper->observer(), |
Observe(int(chrome::NOTIFICATION_LOGINS_CHANGED), |
- content::Source<PasswordStore>(store), |
+ content::Source<PasswordStore>(store.get()), |
Property(&content::Details<const PasswordStoreChangeList>::ptr, |
Pointee(ElementsAreArray( |
expected_update_changes))))); |
@@ -382,7 +382,7 @@ TEST_P(PasswordStoreXTest, Notifications) { |
EXPECT_CALL(helper->observer(), |
Observe(int(chrome::NOTIFICATION_LOGINS_CHANGED), |
- content::Source<PasswordStore>(store), |
+ content::Source<PasswordStore>(store.get()), |
Property(&content::Details<const PasswordStoreChangeList>::ptr, |
Pointee(ElementsAreArray( |
expected_delete_changes))))); |
@@ -396,7 +396,7 @@ TEST_P(PasswordStoreXTest, Notifications) { |
done.Wait(); |
// Public in PasswordStore, protected in PasswordStoreX. |
- static_cast<PasswordStore*>(store)->ShutdownOnUIThread(); |
+ static_cast<PasswordStore*>(store.get())->ShutdownOnUIThread(); |
} |
TEST_P(PasswordStoreXTest, NativeMigration) { |
@@ -533,7 +533,7 @@ TEST_P(PasswordStoreXTest, NativeMigration) { |
STLDeleteElements(&expected_blacklisted); |
// Public in PasswordStore, protected in PasswordStoreX. |
- static_cast<PasswordStore*>(store)->ShutdownOnUIThread(); |
+ static_cast<PasswordStore*>(store.get())->ShutdownOnUIThread(); |
} |
INSTANTIATE_TEST_CASE_P(NoBackend, |