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

Unified Diff: mojo/embedder/simple_platform_shared_buffer_win.cc

Issue 610083002: Mojo: Convert some scoped_ptr<...>(new ...) to make_scoped_ptr(new ...) in mojo/{embedder,system}. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: missed a few Created 6 years, 3 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 | « mojo/embedder/simple_platform_shared_buffer_posix.cc ('k') | mojo/embedder/test_embedder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/embedder/simple_platform_shared_buffer_win.cc
diff --git a/mojo/embedder/simple_platform_shared_buffer_win.cc b/mojo/embedder/simple_platform_shared_buffer_win.cc
index 1167ac5fa0616b5d5296261de38af65fe79b04ae..ed7958e13445a6cb2baf1c63dccfd95f65ea93bc 100644
--- a/mojo/embedder/simple_platform_shared_buffer_win.cc
+++ b/mojo/embedder/simple_platform_shared_buffer_win.cc
@@ -79,9 +79,8 @@ scoped_ptr<PlatformSharedBufferMapping> SimplePlatformSharedBuffer::MapImpl(
}
void* base = static_cast<char*>(real_base) + offset_rounding;
- return scoped_ptr<PlatformSharedBufferMapping>(
- new SimplePlatformSharedBufferMapping(
- base, length, real_base, real_length));
+ return make_scoped_ptr(new SimplePlatformSharedBufferMapping(
+ base, length, real_base, real_length));
}
// SimplePlatformSharedBufferMapping -------------------------------------------
« no previous file with comments | « mojo/embedder/simple_platform_shared_buffer_posix.cc ('k') | mojo/embedder/test_embedder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698