Index: components/invalidation/p2p_invalidator.cc |
diff --git a/components/invalidation/p2p_invalidator.cc b/components/invalidation/p2p_invalidator.cc |
index c583d440faabfa77ff4f48ea9e82e917d6b43282..906a201dee6edff0025c5ac4e8a844ee5422bd51 100644 |
--- a/components/invalidation/p2p_invalidator.cc |
+++ b/components/invalidation/p2p_invalidator.cc |
@@ -102,13 +102,12 @@ bool P2PNotificationData::Equals(const P2PNotificationData& other) const { |
} |
std::string P2PNotificationData::ToString() const { |
- scoped_ptr<base::DictionaryValue> dict(new base::DictionaryValue()); |
- dict->SetString(kSenderIdKey, sender_id_); |
- dict->SetString(kNotificationTypeKey, |
- P2PNotificationTargetToString(target_)); |
- dict->Set(kInvalidationsKey, invalidation_map_.ToValue().release()); |
+ base::DictionaryValue dict; |
+ dict.SetString(kSenderIdKey, sender_id_); |
+ dict.SetString(kNotificationTypeKey, P2PNotificationTargetToString(target_)); |
+ dict.Set(kInvalidationsKey, invalidation_map_.ToValue().release()); |
std::string json; |
- base::JSONWriter::Write(dict.get(), &json); |
+ base::JSONWriter::Write(dict, &json); |
return json; |
} |