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

Unified Diff: services/ui/public/cpp/bitmap/child_shared_bitmap_manager.cc

Issue 2919253002: Don't move raw pointers in services (Closed)
Patch Set: Created 3 years, 6 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: services/ui/public/cpp/bitmap/child_shared_bitmap_manager.cc
diff --git a/services/ui/public/cpp/bitmap/child_shared_bitmap_manager.cc b/services/ui/public/cpp/bitmap/child_shared_bitmap_manager.cc
index 92fc4300b1891aba9d4cc158ca79d771fb9723b3..bb4ad834338734f2893a63ed3e4688fb3d872df1 100644
--- a/services/ui/public/cpp/bitmap/child_shared_bitmap_manager.cc
+++ b/services/ui/public/cpp/bitmap/child_shared_bitmap_manager.cc
@@ -139,8 +139,8 @@ std::unique_ptr<cc::SharedBitmap>
ChildSharedBitmapManager::GetBitmapForSharedMemory(base::SharedMemory* mem) {
cc::SharedBitmapId id = cc::SharedBitmap::GenerateId();
NotifyAllocatedSharedBitmap(mem, cc::SharedBitmap::GenerateId());
- return base::MakeUnique<ChildSharedBitmap>(shared_bitmap_manager_ptr_,
- std::move(mem), id);
+ return base::MakeUnique<ChildSharedBitmap>(shared_bitmap_manager_ptr_, mem,
+ id);
}
// Notifies the browser process that a shared bitmap with the given ID was
« no previous file with comments | « services/preferences/tracked/pref_hash_store_impl.cc ('k') | services/video_capture/test/mock_device_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698