Index: components/history/core/browser/top_sites_impl.cc |
diff --git a/components/history/core/browser/top_sites_impl.cc b/components/history/core/browser/top_sites_impl.cc |
index 4df526b6d3bb08c506f6221bba7c9c609cb06862..05548ddb6e422c373a1f6831231186d3f9bc784c 100644 |
--- a/components/history/core/browser/top_sites_impl.cc |
+++ b/components/history/core/browser/top_sites_impl.cc |
@@ -318,11 +318,11 @@ bool TopSitesImpl::HasBlacklistedItems() const { |
void TopSitesImpl::AddBlacklistedURL(const GURL& url) { |
DCHECK(thread_checker_.CalledOnValidThread()); |
- base::Value* dummy = base::Value::CreateNullValue(); |
+ scoped_ptr<base::Value> dummy = base::Value::CreateNullValue(); |
{ |
DictionaryPrefUpdate update(pref_service_, blacklist_pref_name_); |
base::DictionaryValue* blacklist = update.Get(); |
- blacklist->SetWithoutPathExpansion(GetURLHash(url), dummy); |
+ blacklist->SetWithoutPathExpansion(GetURLHash(url), dummy.Pass()); |
} |
ResetThreadSafeCache(); |