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

Unified Diff: chrome/browser/metrics/subprocess_metrics_provider.cc

Issue 2480293004: Mandate unique_ptr for base::IDMap in IDMapOwnPointer mode. (Closed)
Patch Set: Make changes requested by danakj, fix a few more headers Created 4 years 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/metrics/subprocess_metrics_provider.cc
diff --git a/chrome/browser/metrics/subprocess_metrics_provider.cc b/chrome/browser/metrics/subprocess_metrics_provider.cc
index 06d255350adeb91f8c594192be5dd1689f8b7743..d36e847f0e00668d8e756c0dee8d04d92ca5a98e 100644
--- a/chrome/browser/metrics/subprocess_metrics_provider.cc
+++ b/chrome/browser/metrics/subprocess_metrics_provider.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/metrics/subprocess_metrics_provider.h"
+#include <utility>
+
#include "base/logging.h"
#include "base/memory/ptr_util.h"
#include "base/metrics/histogram_base.h"
@@ -59,7 +61,7 @@ void SubprocessMetricsProvider::RegisterSubprocessAllocator(
return;
// Map is "MapOwnPointer" so transfer ownership to it.
- allocators_by_id_.AddWithID(allocator.release(), id);
+ allocators_by_id_.AddWithID(std::move(allocator), id);
}
void SubprocessMetricsProvider::DeregisterSubprocessAllocator(int id) {
« no previous file with comments | « chrome/browser/media/cast_transport_host_filter.cc ('k') | chrome/browser/permissions/permission_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698