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

Unified Diff: content/common/host_shared_bitmap_manager.cc

Issue 1544293002: Convert Pass()→std::move() in //content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « content/common/host_discardable_shared_memory_manager.cc ('k') | content/common/input/input_event_ack.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/host_shared_bitmap_manager.cc
diff --git a/content/common/host_shared_bitmap_manager.cc b/content/common/host_shared_bitmap_manager.cc
index 03b389ad6838343022c0942b98ea1350851ad9c8..d41ec392be50a266504516c85e10d6ce08ef1892 100644
--- a/content/common/host_shared_bitmap_manager.cc
+++ b/content/common/host_shared_bitmap_manager.cc
@@ -5,6 +5,7 @@
#include "content/common/host_shared_bitmap_manager.h"
#include <stdint.h>
+#include <utility>
#include "base/lazy_instance.h"
#include "base/macros.h"
@@ -232,7 +233,7 @@ void HostSharedBitmapManager::AllocateSharedBitmapForChild(
scoped_refptr<BitmapData> data(
new BitmapData(process_handle, buffer_size));
- data->memory = shared_memory.Pass();
+ data->memory = std::move(shared_memory);
handle_map_[id] = data;
if (!data->memory->ShareToProcess(process_handle, shared_memory_handle)) {
« no previous file with comments | « content/common/host_discardable_shared_memory_manager.cc ('k') | content/common/input/input_event_ack.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698