Chromium Code Reviews| Index: content/browser/browser_main_loop.cc |
| diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc |
| index 17c6ebedb1ff5c38473b8ce8f60fdef1305d5d12..e2cc7fd5c04e89a3f8672531cfe3277b1d365a63 100644 |
| --- a/content/browser/browser_main_loop.cc |
| +++ b/content/browser/browser_main_loop.cc |
| @@ -25,6 +25,7 @@ |
| #include "base/trace_event/trace_event.h" |
| #include "content/browser/browser_thread_impl.h" |
| #include "content/browser/device_sensors/device_inertial_sensor_service.h" |
| +#include "content/browser/dom_storage/dom_storage_area.h" |
| #include "content/browser/download/save_file_manager.h" |
| #include "content/browser/gamepad/gamepad_service.h" |
| #include "content/browser/gpu/browser_gpu_channel_host_factory.h" |
| @@ -583,6 +584,11 @@ void BrowserMainLoop::MainMessageLoopStart() { |
| base::MessageLoop::current()->AddTaskObserver(memory_observer_.get()); |
| } |
| + if (parsed_command_line_.HasSwitch( |
| + switches::kEnableAggressiveDOMStorageFlushing)) { |
| + DOMStorageArea::EnableAggressiveCommitDelay(); |
|
nasko
2015/05/08 21:19:00
I wonder if there is a better place to initialize
|
| + } |
| + |
| base::trace_event::MemoryDumpManager::GetInstance()->Initialize(); |
| // Enable the dump providers. |