Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2591)

Unified Diff: chrome/browser/printing/cloud_print/privet_notifications.cc

Issue 1641563002: Remove linked_ptr usage in //base. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix rebase, really Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 77dfda5fc718e7a841a4034bce1825b40b4705f1..09f69944f7974feb342c95548cbdd7859bed35c7 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);
« no previous file with comments | « chrome/browser/printing/cloud_print/privet_notifications.h ('k') | components/guest_view/browser/guest_view_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698