Index: content/browser/browser_main_loop.cc |
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc |
index cbb70ac6233d1655836e75fef31da669e4fb3fb2..bf495b9acee30d23d3e376129b6ebe550fd0121c 100644 |
--- a/content/browser/browser_main_loop.cc |
+++ b/content/browser/browser_main_loop.cc |
@@ -41,6 +41,7 @@ |
#include "content/browser/webui/content_web_ui_controller_factory.h" |
#include "content/browser/webui/url_data_manager.h" |
#include "content/common/content_switches_internal.h" |
+#include "content/common/host_discardable_shared_memory_manager.h" |
#include "content/public/browser/browser_main_parts.h" |
#include "content/public/browser/browser_shutdown.h" |
#include "content/public/browser/content_browser_client.h" |
@@ -460,6 +461,9 @@ void BrowserMainLoop::EarlyInitialization() { |
gfx::GpuMemoryBuffer::SCANOUT); |
#endif |
+ base::DiscardableMemoryShmemAllocator::SetInstance( |
+ HostDiscardableSharedMemoryManager::current()); |
+ |
if (parts_) |
parts_->PostEarlyInitialization(); |
} |