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

Unified Diff: content/child/web_discardable_memory_impl.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
Index: content/child/web_discardable_memory_impl.cc
diff --git a/content/child/web_discardable_memory_impl.cc b/content/child/web_discardable_memory_impl.cc
index 18042b2945b13e2ae2514f256979c3b5ba12a973..a92083c937d15a70632f3b87194d0820d8e77ae7 100644
--- a/content/child/web_discardable_memory_impl.cc
+++ b/content/child/web_discardable_memory_impl.cc
@@ -4,6 +4,8 @@
#include "content/child/web_discardable_memory_impl.h"
+#include <utility>
+
#include "base/memory/discardable_memory.h"
#include "base/memory/discardable_memory_allocator.h"
#include "content/child/web_process_memory_dump_impl.h"
@@ -43,7 +45,6 @@ WebDiscardableMemoryImpl::createMemoryAllocatorDump(
WebDiscardableMemoryImpl::WebDiscardableMemoryImpl(
scoped_ptr<base::DiscardableMemory> memory)
- : discardable_(memory.Pass()) {
-}
+ : discardable_(std::move(memory)) {}
} // namespace content
« no previous file with comments | « content/child/web_data_consumer_handle_impl_unittest.cc ('k') | content/child/web_process_memory_dump_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698