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

Unified Diff: content/public/test/mock_render_thread.cc

Issue 1874903002: Convert //content from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix indent Created 4 years, 8 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
« no previous file with comments | « content/public/test/mock_render_thread.h ('k') | content/public/test/mock_resource_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/mock_render_thread.cc
diff --git a/content/public/test/mock_render_thread.cc b/content/public/test/mock_render_thread.cc
index 0160c439ed179cbfc423332279ecc8c3841942ac..b12143d632326cd0e36c94c0596d063afb53a2d0 100644
--- a/content/public/test/mock_render_thread.cc
+++ b/content/public/test/mock_render_thread.cc
@@ -129,16 +129,15 @@ void MockRenderThread::RecordAction(const base::UserMetricsAction& action) {
void MockRenderThread::RecordComputedAction(const std::string& action) {
}
-scoped_ptr<base::SharedMemory>
- MockRenderThread::HostAllocateSharedMemoryBuffer(
- size_t buffer_size) {
- scoped_ptr<base::SharedMemory> shared_buf(new base::SharedMemory);
+std::unique_ptr<base::SharedMemory>
+MockRenderThread::HostAllocateSharedMemoryBuffer(size_t buffer_size) {
+ std::unique_ptr<base::SharedMemory> shared_buf(new base::SharedMemory);
if (!shared_buf->CreateAnonymous(buffer_size)) {
NOTREACHED() << "Cannot map shared memory buffer";
- return scoped_ptr<base::SharedMemory>();
+ return std::unique_ptr<base::SharedMemory>();
}
- return scoped_ptr<base::SharedMemory>(shared_buf.release());
+ return std::unique_ptr<base::SharedMemory>(shared_buf.release());
}
cc::SharedBitmapManager* MockRenderThread::GetSharedBitmapManager() {
« no previous file with comments | « content/public/test/mock_render_thread.h ('k') | content/public/test/mock_resource_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698