Index: third_party/mojo/src/mojo/edk/system/core.cc |
diff --git a/third_party/mojo/src/mojo/edk/system/core.cc b/third_party/mojo/src/mojo/edk/system/core.cc |
index 4460088d47fde90a1d5e2905b3614df7ca36b9fb..6189e5031d11c231537448348da03a37a5124ac2 100644 |
--- a/third_party/mojo/src/mojo/edk/system/core.cc |
+++ b/third_party/mojo/src/mojo/edk/system/core.cc |
@@ -78,8 +78,8 @@ namespace system { |
// held. |
// TODO(vtl): This should take a |scoped_ptr<PlatformSupport>| as a parameter. |
-Core::Core(embedder::PlatformSupport* platform_support) |
- : platform_support_(platform_support) { |
+Core::Core(scoped_ptr<embedder::PlatformSupport> platform_support) |
+ : platform_support_(platform_support.Pass()) { |
} |
Core::~Core() { |
@@ -469,7 +469,7 @@ MojoResult Core::CreateSharedBuffer( |
return result; |
scoped_refptr<SharedBufferDispatcher> dispatcher; |
- result = SharedBufferDispatcher::Create(platform_support_, validated_options, |
+ result = SharedBufferDispatcher::Create(platform_support(), validated_options, |
num_bytes, &dispatcher); |
if (result != MOJO_RESULT_OK) { |
DCHECK(!dispatcher); |