| Index: components/prefs/default_pref_store_unittest.cc
|
| diff --git a/components/prefs/default_pref_store_unittest.cc b/components/prefs/default_pref_store_unittest.cc
|
| index 06cabc01b1471d7773b1c512f662740576225d73..af6a074857501e2432d0b9742f3eb48809bfaf42 100644
|
| --- a/components/prefs/default_pref_store_unittest.cc
|
| +++ b/components/prefs/default_pref_store_unittest.cc
|
| @@ -54,17 +54,17 @@ TEST(DefaultPrefStoreTest, NotifyPrefValueChanged) {
|
|
|
| // Setting a default value shouldn't send a change notification.
|
| pref_store->SetDefaultValue(kPrefKey,
|
| - scoped_ptr<Value>(new StringValue("foo")));
|
| + std::unique_ptr<Value>(new StringValue("foo")));
|
| EXPECT_EQ(0, observer.change_count());
|
|
|
| // Replacing the default value should send a change notification...
|
| - pref_store->ReplaceDefaultValue(kPrefKey,
|
| - scoped_ptr<Value>(new StringValue("bar")));
|
| + pref_store->ReplaceDefaultValue(
|
| + kPrefKey, std::unique_ptr<Value>(new StringValue("bar")));
|
| EXPECT_EQ(1, observer.change_count());
|
|
|
| // But only if the value actually changed.
|
| - pref_store->ReplaceDefaultValue(kPrefKey,
|
| - scoped_ptr<Value>(new StringValue("bar")));
|
| + pref_store->ReplaceDefaultValue(
|
| + kPrefKey, std::unique_ptr<Value>(new StringValue("bar")));
|
| EXPECT_EQ(1, observer.change_count());
|
| }
|
|
|
|
|