Index: mojo/edk/system/mapping_table.cc |
diff --git a/mojo/edk/system/mapping_table.cc b/mojo/edk/system/mapping_table.cc |
index 693e8d79590a57032e92a34addec1c8a8c8ab5c9..0a28a1d01f697f3c557b7b4922b97a2190db8a25 100644 |
--- a/mojo/edk/system/mapping_table.cc |
+++ b/mojo/edk/system/mapping_table.cc |
@@ -6,7 +6,7 @@ |
#include "base/logging.h" |
#include "mojo/edk/embedder/platform_shared_buffer.h" |
-#include "mojo/edk/system/configuration.h" |
+#include "mojo/edk/system/constants.h" |
namespace mojo { |
namespace system { |
@@ -23,8 +23,7 @@ |
scoped_ptr<embedder::PlatformSharedBufferMapping> mapping) { |
DCHECK(mapping); |
- if (address_to_mapping_map_.size() >= |
- GetConfiguration().max_mapping_table_sze) |
+ if (address_to_mapping_map_.size() >= kMaxMappingTableSize) |
return MOJO_RESULT_RESOURCE_EXHAUSTED; |
uintptr_t address = reinterpret_cast<uintptr_t>(mapping->GetBase()); |