Index: chrome/browser/printing/cloud_print/privet_notifications.cc |
diff --git a/chrome/browser/printing/cloud_print/privet_notifications.cc b/chrome/browser/printing/cloud_print/privet_notifications.cc |
index 81c8120eff320a9ff132639ab2f8266e8f59d8bd..29275adc374b24193711a2cd184ca22bb99e8ae4 100644 |
--- a/chrome/browser/printing/cloud_print/privet_notifications.cc |
+++ b/chrome/browser/printing/cloud_print/privet_notifications.cc |
@@ -101,13 +101,11 @@ void PrivetNotificationsListener::DeviceChanged( |
return; // Already saw this device. |
} |
- linked_ptr<DeviceContext> device_context(new DeviceContext); |
- |
+ scoped_ptr<DeviceContext>& device_context = devices_seen_[name]; |
+ device_context.reset(new DeviceContext); |
device_context->notification_may_be_active = false; |
device_context->registered = !description.id.empty(); |
- devices_seen_.insert(make_pair(name, device_context)); |
- |
if (!device_context->registered) { |
device_context->privet_http_resolution = |
privet_http_factory_->CreatePrivetHTTP(name); |