Index: base/shared_memory_android.cc |
diff --git a/base/shared_memory_android.cc b/base/shared_memory_android.cc |
index 8e55e3ae9a18ffba8b5e896275bbb185c0e2be70..a5beceb5c5bb501b497f1be99748f00e67eea278 100644 |
--- a/base/shared_memory_android.cc |
+++ b/base/shared_memory_android.cc |
@@ -21,7 +21,7 @@ bool SharedMemory::Create(const SharedMemoryCreateOptions& options) { |
// "name" is just a label in ashmem. It is visible in /proc/pid/maps. |
mapped_file_ = ashmem_create_region( |
- options.name == NULL ? "" : options.name.c_str(), |
+ options.name == NULL ? "" : options.name->c_str(), |
options.size); |
if (-1 == mapped_file_) { |
DLOG(ERROR) << "Shared memory creation failed"; |
@@ -34,7 +34,7 @@ bool SharedMemory::Create(const SharedMemoryCreateOptions& options) { |
DLOG(ERROR) << "Error " << err << " when setting protection of ashmem"; |
return false; |
} |
- created_size_ = size; |
+ created_size_ = options.size; |
return true; |
} |