| Index: chrome/browser/spellchecker/misspelling.cc
|
| diff --git a/chrome/browser/spellchecker/misspelling.cc b/chrome/browser/spellchecker/misspelling.cc
|
| index 86deb0d0674f0415b55867db078c9b8e111e9702..5f13a252be4771704f74cee975c9336acab5188b 100644
|
| --- a/chrome/browser/spellchecker/misspelling.cc
|
| +++ b/chrome/browser/spellchecker/misspelling.cc
|
| @@ -48,8 +48,9 @@ Misspelling::Misspelling(const base::string16& context,
|
|
|
| Misspelling::~Misspelling() {}
|
|
|
| -base::DictionaryValue* SerializeMisspelling(const Misspelling& misspelling) {
|
| - base::DictionaryValue* result = new base::DictionaryValue;
|
| +scoped_ptr<base::DictionaryValue> SerializeMisspelling(
|
| + const Misspelling& misspelling) {
|
| + scoped_ptr<base::DictionaryValue> result(new base::DictionaryValue);
|
| result->SetString(
|
| "timestamp",
|
| base::Int64ToString(static_cast<long>(misspelling.timestamp.ToJsTime())));
|
|
|